  
      def is_blurry(self, image):
          """ Convert to grayscale, and compute the focus measure of the image using the
              Variance of Laplacian method """
          gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)  # pylint: disable=no-member
          focus_measure = self.variance_of_laplacian(gray)
  
          # if the focus measure is less than the supplied threshold,
          # then the image should be considered "blurry"
          retval = (focus_measure < self.blur_thresh, focus_measure)
 
</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         """ Convert the image to the correct color format """
 </s> add         """ Convert the image to the correct color format and strip alpha channel """ </s> remove             cvt_image = image[:, :, ::-1].copy()
 </s> add             cvt_image = image[..., 2::-1].copy() </s> remove         self.filename = filename
 </s> add  </s> remove         image = self._convert_color(input_image[..., :3])
 </s> add         image = self._convert_color(input_image)
        gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
  
      def is_blurry(self, image):
          """ Convert to grayscale, and compute the focus measure of the image using the
              Variance of Laplacian method """
        gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
          focus_measure = self.variance_of_laplacian(gray)
  
          # if the focus measure is less than the supplied threshold,
          # then the image should be considered "blurry"
          retval = (focus_measure < self.blur_thresh, focus_measure)
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 
scripts/fsmedia.py