                                      source_frame_dims=extract_media.image_size))
              image = encode_image(face.aligned.face, extension, metadata=meta)
  
              if saver is not None:
                  sub_folder = extract_media.sub_folders[idx]
                  saver.save(output_filename, image, sub_folder)
              if extract_media.sub_folders[idx]:  # This is a filtered out face being binned
                  continue
              final_faces.append(face.to_alignment())
  
          self._alignments.data[os.path.basename(extract_media.filename)] = dict(faces=final_faces)
          del extract_media
 
</s> remove                                     face_index=idx,
 </s> add                                     face_index=real_face_id, </s> remove         for idx, face in enumerate(extract_media.detected_faces):
            output_filename = f"{filename}_{idx}{extension}"
 </s> add         skip_idx = 0
        for face_id, face in enumerate(extract_media.detected_faces):
            real_face_id = face_id - skip_idx
            output_filename = f"{filename}_{real_face_id}{extension}"
                saver.save(out_name, image, sub_folder)

            if sub_folder:  # This is a filtered out face being binned
                skip_idx += 1
                                      source_frame_dims=extract_media.image_size))
              image = encode_image(face.aligned.face, extension, metadata=meta)
  
              if saver is not None:
                saver.save(out_name, image, sub_folder)

            if sub_folder:  # This is a filtered out face being binned
                skip_idx += 1
                saver.save(out_name, image, sub_folder)

            if sub_folder:  # This is a filtered out face being binned
                skip_idx += 1
                saver.save(out_name, image, sub_folder)

            if sub_folder:  # This is a filtered out face being binned
                skip_idx += 1
                  continue
              final_faces.append(face.to_alignment())
  
          self._alignments.data[os.path.basename(extract_media.filename)] = dict(faces=final_faces)
          del extract_media
keep keep keep keep replace replace replace keep keep keep keep keep
 Bugfix: Extract. numbering issue when binning results 
scripts/extract.py