          return item
  
      # <<< MISC UTILITY METHODS >>> #
      def _convert_color(self, image):
          """ Convert the image to the correct color format """
          logger.trace("Converting image to color format: %s", self.colorformat)
          if self.colorformat == "RGB":
              cvt_image = image[:, :, ::-1].copy()
          elif self.colorformat == "GRAY":
              cvt_image = cv2.cvtColor(image.copy(), cv2.COLOR_BGR2GRAY)  # pylint:disable=no-member
 
</s> remove             cvt_image = image[:, :, ::-1].copy()
 </s> add             cvt_image = image[..., 2::-1].copy() </s> remove             cvt_image = cv2.cvtColor(image.copy(), cv2.COLOR_BGR2GRAY)  # pylint:disable=no-member
 </s> add             cvt_image = cv2.cvtColor(image.copy(), cv2.COLOR_BGR2GRAY) </s> remove             cvt_image = image.copy()
 </s> add             cvt_image = image[..., :3].copy() </s> remove         gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)  # pylint: disable=no-member
 </s> add         gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) </s> remove         image = self._convert_color(input_image[..., :3])
 </s> add         image = self._convert_color(input_image)
        """ Convert the image to the correct color format and strip alpha channel """
          return item
  
      # <<< MISC UTILITY METHODS >>> #
      def _convert_color(self, image):
        """ Convert the image to the correct color format and strip alpha channel """
          logger.trace("Converting image to color format: %s", self.colorformat)
          if self.colorformat == "RGB":
              cvt_image = image[:, :, ::-1].copy()
          elif self.colorformat == "GRAY":
              cvt_image = cv2.cvtColor(image.copy(), cv2.COLOR_BGR2GRAY)  # pylint:disable=no-member
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 
plugins/extract/_base.py