          self._alignments = alignments
          self._is_legacy = self._alignments.version == 1.0  # pylint:disable=protected-access
          self._mask_pipeline = None
          self._faces_dir = arguments.faces_dir
  
          self._frames = Frames(arguments.frames_dir, self._get_count())
          self._extracted_faces = ExtractedFaces(self._frames,
                                                 self._alignments,
                                                 size=arguments.size)
          self._saver = None
 
</s> remove     def _check_folder(self):
 </s> add     def _check_folder(self) -> 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: </s> remove         if self._is_legacy and extracted_faces != 0 and not self._arguments.large:
 </s> add         if self._is_legacy and extracted_faces != 0 and self._min_size == 0: </s> remove     def _pad_legacy_masks(cls, detected_face):
 </s> add     def _pad_legacy_masks(cls, detected_face: DetectedFace) -> None:
        self._min_size = self._get_min_size(arguments.size, arguments.min_size)
          self._alignments = alignments
          self._is_legacy = self._alignments.version == 1.0  # pylint:disable=protected-access
          self._mask_pipeline = None
          self._faces_dir = arguments.faces_dir
        self._min_size = self._get_min_size(arguments.size, arguments.min_size)
  
          self._frames = Frames(arguments.frames_dir, self._get_count())
          self._extracted_faces = ExtractedFaces(self._frames,
                                                 self._alignments,
                                                 size=arguments.size)
          self._saver = None
keep keep keep add keep keep keep keep keep keep
 Alignments tool - Replace 'extract-large' with 'min-size' 
tools/alignments/jobs.py