              for name, mask_dict in alignment["mask"].items():
                  self.mask[name] = Mask()
                  self.mask[name].from_dict(mask_dict)
          if image is not None and image.any():
              self.image = image
              self._image_to_face(image)
          logger.trace("Created from alignment: (x: %s, w: %s, y: %s. h: %s, "
                       "landmarks: %s, mask: %s)",
                       self.x, self.w, self.y, self.h, self.landmarks_xy, self.mask)
  
 
</s> remove             self.aligned["padding"] = self._padding_from_coverage(size, coverage_ratio)
 </s> add             self.aligned["padding"] = padding </s> remove         self.phase = "detect"
 </s> add         self._flow = ["detect", "align", "mask"]
        self.phase = self._flow[0] </s> remove 
        face = AlignerExtract().transform(image,
                                          self.feed["matrix"],
                                          size,
                                          self.feed["padding"])
 </s> add         face = AlignerExtract().transform(image, self.feed["matrix"], size, self.feed["padding"]) </s> remove                               flags=cv2.WARP_INVERSE_MAP | self._intepolator,
 </s> add                               flags=cv2.WARP_INVERSE_MAP | self._interpolator,
              for name, mask_dict in alignment["mask"].items():
                  self.mask[name] = Mask()
                  self.mask[name].from_dict(mask_dict)
          if image is not None and image.any():

              self._image_to_face(image)
          logger.trace("Created from alignment: (x: %s, w: %s, y: %s. h: %s, "
                       "landmarks: %s, mask: %s)",
                       self.x, self.w, self.y, self.h, self.landmarks_xy, self.mask)
  
keep keep keep keep replace keep keep keep keep keep
 Smart Mask - Extract code review

- Lint simple_tests.py
- Only reformat alignments file if it exists otherwise change filename
- Update legacy alignments to new format at all stages
- faces_detect.Mask.from_dict - logging format fix
- convert.py fix otf for new pipeline
- cli.py - Add note that masks not used. Revert convert masks
- faces_detect.py - Revert non-extract code
- Add .p and .pickle extensions for serializer
- plugins/extract revert some changes
- scripts/fsmedia - Revert code changes
- Pipeline - cleanup
- Consistant alpha channel stripping (fixes single-process)
- Store landmarks as numpy array
- Code attribution
- Normalize feed face and reference face to 0.0 - 1.0 in convert
- Lock in mask VRAM sized
- Add documentation to plugin_loader
- Update alignments tool to work with new format 
lib/faces_detect.py