          self.input_size = 128
          self.colorformat = "RGB"
          self.vram = 0  # Doesn't use GPU
          self.batchsize = 1
  
      def init_model(self):
          """ Initialize CV2 DNN Detector Model"""
          self.model = cv2.dnn.readNetFromTensorflow(self.model_path)  # pylint: disable=no-member
          self.model.setPreferableTarget(cv2.dnn.DNN_TARGET_CPU)  # pylint: disable=no-member
 
</s> remove         blob = cv2.dnn.blobFromImage(face,  # pylint: disable=no-member
 </s> add         blob = cv2.dnn.blobFromImage(face[..., :3],  # pylint: disable=no-member </s> remove             images = np.array([cv2.addWeighted(img, 1.0,  # pylint: disable=no-member
                                               masks3[idx], 0.3,
                                               0)
 </s> add             images = np.array([cv2.addWeighted(img,  # pylint: disable=no-member
                                               1.0, masks3[idx], 0.3, 0) </s> remove         cache_path = os.path.join(root_path, "plugins", "extract", ".cache")
 </s> add         cache_path = os.path.join(root_path, "plugins", "extract", "recognition", ".cache") </s> remove                 cv2.circle(  # pylint: disable=no-member
                    face.aligned_face,
                    (pos_x, pos_y), 2, (0, 0, 255), -1)
 </s> add                 cv2.circle(face.feed_face,  # pylint: disable=no-member
                           (pos_x, pos_y), 2, (0, 0, 255, 255), -1)
        self.vram_per_batch = 0
          self.input_size = 128
          self.colorformat = "RGB"
          self.vram = 0  # Doesn't use GPU
        self.vram_per_batch = 0
          self.batchsize = 1
  
      def init_model(self):
          """ Initialize CV2 DNN Detector Model"""
          self.model = cv2.dnn.readNetFromTensorflow(self.model_path)  # pylint: disable=no-member
          self.model.setPreferableTarget(cv2.dnn.DNN_TARGET_CPU)  # pylint: disable=no-member
keep keep add keep keep keep keep keep keep
 Smart Mask Exposure for Extraction & Training (#831)

Smart Masks - Initial Commit 
plugins/extract/align/cv2_dnn.py