Merger: fix bug

This commit is contained in:
Colombo
2020-02-02 14:45:48 +04:00
parent 85792d232a
commit ee27bb0aac
+3 -1
View File
@@ -734,13 +734,15 @@ def main (model_class_name=None,
io.log_info (f"alignment {filepath.name} refers to {source_filepath.name} ") io.log_info (f"alignment {filepath.name} refers to {source_filepath.name} ")
io.log_info ("") io.log_info ("")
alignments[a_key] = [ a[0] for a in a_ar]
if multiple_faces_detected: if multiple_faces_detected:
io.log_info ("It is strongly recommended to process the faces separatelly.") io.log_info ("It is strongly recommended to process the faces separatelly.")
io.log_info ("Use 'recover original filename' to determine the exact duplicates.") io.log_info ("Use 'recover original filename' to determine the exact duplicates.")
io.log_info ("") io.log_info ("")
frames = [ MergeSubprocessor.Frame( frame_info=FrameInfo(filepath=Path(p), frames = [ MergeSubprocessor.Frame( frame_info=FrameInfo(filepath=Path(p),
landmarks_list=alignments.get(Path(p).stem, (None,) )[0] landmarks_list=alignments.get(Path(p).stem, None)
) )
) )
for p in input_path_image_paths ] for p in input_path_image_paths ]