bugfix: manual tool - alignments saving

This commit is contained in:
torzdf 2023-06-28 18:43:37 +01:00
parent efa4471243
commit 4b20316975

View File

@ -300,7 +300,8 @@ class _DiskIO(): # pylint:disable=too-few-public-methods
logger.verbose("Saving alignments for %s updated frames", # type:ignore[attr-defined]
len(frames))
for idx, faces in zip(frames, np.array(self._frame_faces)[np.array(frames)]):
for idx, faces in zip(frames,
np.array(self._frame_faces, dtype="object")[np.array(frames)]):
frame = self._sorted_frame_names[idx]
self._alignments.data[frame]["faces"] = [face.to_alignment() for face in faces]