          logger.debug("Initializing %s: (arguments: %s)", self.__class__.__name__, arguments)
          self._update_type = arguments.processing
          self._input_is_faces = arguments.input_type == "faces"
          self._mask_type = arguments.masker
          self._output = dict(opts=dict(blur_kernel=arguments.blur_kernel,
                                        threshold=arguments.threshold),
                              type=arguments.output_type,
                              full_frame=arguments.full_frame,
                              suffix=self._get_output_suffix(arguments))
          self._counts = dict(face=0, skip=0, update=0)
  
          self._check_input(arguments.input)
          self._saver = self._set_saver(arguments)
          loader = FacesLoader if self._input_is_faces else ImagesLoader
          self._loader = loader(arguments.input)
 
</s> remove         self._faces_saver: Optional[ImagesSaver] = None
 </s> add         self._faces_saver: ImagesSaver | None = None </s> remove         self._type: Optional[Literal["faces", "frames"]] = None
 </s> add         self._type: T.Literal["faces", "frames"] | None = None </s> remove         self._mask_pipeline: Optional[Extractor] = None
 </s> add         self._mask_pipeline: Extractor | None = None </s> remove     def __init__(self, alignments: "AlignmentData", arguments: "Namespace") -> None:
 </s> add     def __init__(self, alignments: AlignmentData, arguments: Namespace) -> None: </s> remove         self._filter: T.Optional[np.ndarray] = None
        self._nfilter: T.Optional[np.ndarray] = None
 </s> add         self._filter: np.ndarray | None = None
        self._nfilter: np.ndarray | None = None
        self._output = {"opts": {"blur_kernel": arguments.blur_kernel,
                                 "threshold": arguments.threshold},
                        "type": arguments.output_type,
                        "full_frame": arguments.full_frame,
                        "suffix": self._get_output_suffix(arguments)}
        self._counts = {"face": 0, "skip": 0, "update": 0}
          logger.debug("Initializing %s: (arguments: %s)", self.__class__.__name__, arguments)
          self._update_type = arguments.processing
          self._input_is_faces = arguments.input_type == "faces"
          self._mask_type = arguments.masker
        self._output = {"opts": {"blur_kernel": arguments.blur_kernel,
                                 "threshold": arguments.threshold},
                        "type": arguments.output_type,
                        "full_frame": arguments.full_frame,
                        "suffix": self._get_output_suffix(arguments)}
        self._counts = {"face": 0, "skip": 0, "update": 0}
        self._output = {"opts": {"blur_kernel": arguments.blur_kernel,
                                 "threshold": arguments.threshold},
                        "type": arguments.output_type,
                        "full_frame": arguments.full_frame,
                        "suffix": self._get_output_suffix(arguments)}
        self._counts = {"face": 0, "skip": 0, "update": 0}
        self._output = {"opts": {"blur_kernel": arguments.blur_kernel,
                                 "threshold": arguments.threshold},
                        "type": arguments.output_type,
                        "full_frame": arguments.full_frame,
                        "suffix": self._get_output_suffix(arguments)}
        self._counts = {"face": 0, "skip": 0, "update": 0}
        self._output = {"opts": {"blur_kernel": arguments.blur_kernel,
                                 "threshold": arguments.threshold},
                        "type": arguments.output_type,
                        "full_frame": arguments.full_frame,
                        "suffix": self._get_output_suffix(arguments)}
        self._counts = {"face": 0, "skip": 0, "update": 0}
        self._output = {"opts": {"blur_kernel": arguments.blur_kernel,
                                 "threshold": arguments.threshold},
                        "type": arguments.output_type,
                        "full_frame": arguments.full_frame,
                        "suffix": self._get_output_suffix(arguments)}
        self._counts = {"face": 0, "skip": 0, "update": 0}
        self._output = {"opts": {"blur_kernel": arguments.blur_kernel,
                                 "threshold": arguments.threshold},
                        "type": arguments.output_type,
                        "full_frame": arguments.full_frame,
                        "suffix": self._get_output_suffix(arguments)}
        self._counts = {"face": 0, "skip": 0, "update": 0}
  
          self._check_input(arguments.input)
          self._saver = self._set_saver(arguments)
          loader = FacesLoader if self._input_is_faces else ImagesLoader
          self._loader = loader(arguments.input)
keep keep keep keep replace replace replace replace replace replace keep keep keep keep keep
 Rebase code (#1326)

* Remove tensorflow_probability requirement

* setup.py - fix progress bars

* requirements.txt: Remove pre python 3.9 packages

* update apple requirements.txt

* update INSTALL.md

* Remove python<3.9 code

* setup.py - fix Windows Installer

* typing: python3.9 compliant

* Update pytest and readthedocs python versions

* typing fixes

* Python Version updates
  - Reduce max version to 3.10
  - Default to 3.10 in installers
  - Remove incompatible 3.11 tests

* Update dependencies

* Downgrade imageio dep for Windows

* typing: merge optional unions and fixes

* Updates
  - min python version 3.10
  - typing to python 3.10 spec
  - remove pre-tf2.10 code
  - Add conda tests

* train: re-enable optimizer saving

* Update dockerfiles

* Update setup.py
  - Apple Conda deps to setup.py
  - Better Cuda + dependency handling

* bugfix: Patch logging to prevent Autograph errors

* Update dockerfiles

* Setup.py - Setup.py - stdout to utf-8

* Add more OSes to github Actions

* suppress mac-os end to end test 
tools/mask/mask.py