          logger.trace("Loaded aligned face: %s", {k: str(v) if isinstance(v, np.ndarray) else v
                                                   for k, v in self.aligned.items()
                                                   if k != "face"})
  
      def _padding_from_coverage(self, size, coverage_ratio):
          """ Return the image padding for a face from coverage_ratio set against a
              pre-padded training image """
          padding = int((size * (coverage_ratio - 0.625)) / 2)
          logger.trace(padding)
          return padding
 
</s> remove                      x, w, y, h, landmarks_xy, filename)
 </s> add                      x, w, y, h, landmarks_xy,
                     {k: v.shape for k, v in mask} if mask is not None else mask,
                     filename) </s> remove                      self.feed_face.shape, self._feed_matrix)
 </s> add                      self.feed_face.shape, self.feed_matrix) </s> remove         return get_matrix_scaling(self._feed_matrix)
 </s> add         return get_matrix_scaling(self.feed_matrix) </s> remove         self.x = x
        self.w = w
        self.y = y
        self.h = h
 </s> add         self.x = x  # pylint:disable=invalid-name
        self.w = w  # pylint:disable=invalid-name
        self.y = y  # pylint:disable=invalid-name
        self.h = h  # pylint:disable=invalid-name
    @staticmethod
    def _padding_from_coverage(size, coverage_ratio):
          logger.trace("Loaded aligned face: %s", {k: str(v) if isinstance(v, np.ndarray) else v
                                                   for k, v in self.aligned.items()
                                                   if k != "face"})
  
    @staticmethod
    def _padding_from_coverage(size, coverage_ratio):
          """ Return the image padding for a face from coverage_ratio set against a
              pre-padded training image """
          padding = int((size * (coverage_ratio - 0.625)) / 2)
          logger.trace(padding)
          return padding
keep keep keep keep replace keep keep keep keep keep
 Mask plugin cleanup

- PEP8 Fixes
- Remove config for non NN Masks
- Tidy up defaults helptext
- cli.py fix typos
- Remove unused imports and functions _base.py
- Standardize input_size param
- Enable and update documentation
- Change references from `aligner` to `masker`
- Change  input_size, output_size and coverage_ratio from kwargs to params
- Move load_aligned to batch input iterator
- Remove unnecessary self.input param
- Add softmax layer append function to KSession
- Remove references to KSession protected objects
- Standardize plugin output into finalize method
- Make masks full frame and add to lib.faces_detect
- Add masks to alignments.json (temporary zipped base64 solution) 
lib/faces_detect.py