  
  mask package
  ============
  
  mask._base module
  -----------------
  
  .. automodule:: plugins.convert.mask._base
     :members:
     :undoc-members:
     :show-inheritance:
  
  mask.box_blend module
  ---------------------
  
  .. automodule:: plugins.convert.mask.box_blend
     :members:
     :undoc-members:
     :show-inheritance:
  
  mask.mask_blend module
  ----------------------
  
  .. automodule:: plugins.convert.mask.mask_blend
     :members:
 
</s> remove         if self.mask_type == "none":
            # Return a dummy mask if not using a mask
            mask = np.ones_like(self.dummy[:, :, 1], dtype="float32")[..., None]
        elif self.mask_type == "predicted" and predicted_mask is not None:
            mask = predicted_mask[..., None]
 </s> add         if self._mask_type == "none":
            mask = np.ones_like(self._box)  # Return a dummy mask if not using a mask
        elif self._mask_type == "predicted" and predicted_mask is not None:
            mask = predicted_mask </s> remove             mask = detected_face.mask[self.mask_type]
            mask.set_blur_and_threshold(blur_kernel=self.config["kernel_size"],
                                        blur_type=self.config["type"],
                                        blur_passes=self.config["passes"],
                                        threshold=self.config["threshold"])
            if sub_crop_offset is not None and np.any(sub_crop_offset):
                mask.set_sub_crop(sub_crop_offset, centering)
            mask = self._crop_to_coverage(mask.mask)
            mask_size = mask.shape[0]
            face_size = self.dummy.shape[0]
            if mask_size != face_size:
                interp = cv2.INTER_CUBIC if mask_size < face_size else cv2.INTER_AREA
                mask = cv2.resize(mask,
                                  self.dummy.shape[:2],
                                  interpolation=interp)[..., None]
            mask = mask.astype("float32") / 255.0
 </s> add             mask = self._get_stored_mask(detected_face, centering, sub_crop_offset)
 </s> remove         Places the requested mask into the new face's Alpha channel, intersecting with any box
        mask that has already been applied.
 </s> add         Places the requested mask into the new face's Alpha channel. </s> remove             The mask sized to Faceswap model output with any requested blurring applied.
 </s> add             The requested mask. </s> remove         """ Return any selected image mask and intersect with any box mask.
 </s> add         """ Return any selected image mask
  
  mask package
  ============
  
















  mask.mask_blend module
  ----------------------
  
  .. automodule:: plugins.convert.mask.mask_blend
     :members:
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
 convert: remove box blend plugin 
docs/full/plugins/convert.rst