  
      @staticmethod
      def _normalize_clahe(face):
          """ Perform Contrast Limited Adaptive Histogram Equalization """
          clahe = cv2.createCLAHE(clipLimit=2.0,  # pylint: disable=no-member
                                  tileGridSize=(4, 4))
          for chan in range(3):
              face[:, :, chan] = clahe.apply(face[:, :, chan])
          return face
 
</s> remove             face[:, :, chan] = cv2.equalizeHist(face[:, :, chan])  # pylint: disable=no-member
 </s> add             face[:, :, chan] = cv2.equalizeHist(face[:, :, chan]) </s> remove             cvt_image = image.copy()
 </s> add             cvt_image = image[..., :3].copy() </s> remove         retval = cv2.Laplacian(image, cv2.CV_64F).var()  # pylint: disable=no-member
 </s> add         retval = cv2.Laplacian(image, cv2.CV_64F).var() </s> remove             src_face = detected_face.reference_face
 </s> add             src_face = detected_face.reference_face[..., :3] / 255.0 </s> remove             cvt_image = image[:, :, ::-1].copy()
 </s> add             cvt_image = image[..., 2::-1].copy()
        clahe = cv2.createCLAHE(clipLimit=2.0,
  
      @staticmethod
      def _normalize_clahe(face):
          """ Perform Contrast Limited Adaptive Histogram Equalization """
        clahe = cv2.createCLAHE(clipLimit=2.0,
                                  tileGridSize=(4, 4))
          for chan in range(3):
              face[:, :, chan] = clahe.apply(face[:, :, chan])
          return face
keep keep keep keep replace 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/align/_base.py