          super().__init__(git_model_id,
                           model_filename,
                           configfile=configfile)
          self.input_size = 256  # Override for model specific input_size
          self.blur_kernel = 5  # Override for model specific blur_kernel size
          self.coverage_ratio = 1.0  # Override for model specific coverage_ratio
  
          self._plugin_type = "mask"
          self._storage_name = self.__module__.split(".")[-1].replace("_", "-")
          self._storage_size = 128  # Size to store masks at. Leave this at default
 
</s> remove     def __init__(self, git_model_id=None, model_filename=None, configfile=None):
 </s> add     def __init__(self, git_model_id=None, model_filename=None, configfile=None,
                 image_is_aligned=False): </s> remove         # TODO Migrate these settings to retrieval rather than storage
        # if self.blur_kernel is not None:
        #    predicted = np.array([cv2.GaussianBlur(mask, (self.blur_kernel, self.blur_kernel), 0)
        #                          for mask in batch["prediction"]])
        # else:
        #    predicted = batch["prediction"]
        # predicted[predicted < 0.04] = 0.0
        # predicted[predicted > 0.96] = 1.0
 </s> add  </s> remove         self._mask = self._load_mask(masker, configfile)
 </s> add         self._mask = self._load_mask(masker, image_is_aligned, configfile) </s> remove                      multiprocess, rotate_images, min_size, normalize_method)
        self._flow = ["detect", "align", "mask"]
 </s> add                      multiprocess, rotate_images, min_size, normalize_method, image_is_aligned)
        self._flow = self._set_flow(detector, aligner, masker)
          super().__init__(git_model_id,
                           model_filename,
                           configfile=configfile)
          self.input_size = 256  # Override for model specific input_size

          self.coverage_ratio = 1.0  # Override for model specific coverage_ratio
  
          self._plugin_type = "mask"
          self._storage_name = self.__module__.split(".")[-1].replace("_", "-")
          self._storage_size = 128  # Size to store masks at. Leave this at default
keep keep keep keep replace keep keep keep keep keep
 Extract - Mask updates

- Remove none mask plugin
- Make pipeline more flexible
- Add support for pre-aligned faces to masker plugin
- Migrate blur and threshold settings to mask output 
plugins/extract/mask/_base.py