              if not self._alignments.frame_exists(frame_name):
                  logger.verbose("Skipping '%s' - Alignments not found", frame_name)
                  continue
              extracted_faces += self._output_faces(frame_name, image)
          if self._is_legacy and extracted_faces != 0 and not self._arguments.large:
              self._alignments.save()
          logger.info("%s face(s) extracted", extracted_faces)
  
      def _set_skip_list(self):
          """ Set the indices for frames that should be skipped based on the `extract_every_n`
 
</s> remove     def _check_folder(self):
 </s> add     def _check_folder(self) -> None: </s> remove     def _pad_legacy_masks(cls, detected_face):
 </s> add     def _pad_legacy_masks(cls, detected_face: DetectedFace) -> None: </s> remove         processor = getattr(self, "_get_{}".format(action))
 </s> add         processor = getattr(self, f"_get_{action}") </s> remove         with open(output_file, "w") as f_output:
 </s> add         with open(output_file, "w", encoding="utf8") as f_output:
        if self._is_legacy and extracted_faces != 0 and self._min_size == 0:
              if not self._alignments.frame_exists(frame_name):
                  logger.verbose("Skipping '%s' - Alignments not found", frame_name)
                  continue
              extracted_faces += self._output_faces(frame_name, image)
        if self._is_legacy and extracted_faces != 0 and self._min_size == 0:
              self._alignments.save()
          logger.info("%s face(s) extracted", extracted_faces)
  
      def _set_skip_list(self):
          """ Set the indices for frames that should be skipped based on the `extract_every_n`
keep keep keep keep replace keep keep keep keep keep
 Alignments tool - Replace 'extract-large' with 'min-size' 
tools/alignments/jobs.py