      def initialize(self, *args, **kwargs):
          """ Calculate batch size """
          print("Initializing Dlib-CNN Detector...")
          super().initialize(*args, **kwargs)
          self.detector = dlib.cnn_face_detection_model_v1(self.model_path)
          is_cuda = self.compiled_for_cuda()
          if is_cuda:
              vram_free = self.get_vram_free()
          else:
              vram_free = 2048
 
</s> remove         cuda = dlib.DLIB_USE_CUDA
 </s> add         cuda = dlib.DLIB_USE_CUDA  # pylint: disable=c-extension-no-member </s> remove                 batch_detected = self.detector(detect_images, 0)
 </s> add                 batch_detected = self.detect_batch(detect_images) </s> remove                 face = dlib.rectangle(int(face.left() / self.scale),
                                      int(face.top() / self.scale),
                                      int(face.right() / self.scale),
                                      int(face.bottom() / self.scale))
 </s> add                 face = dlib.rectangle(  # pylint: disable=c-extension-no-member
                    int(face.left() / self.scale),
                    int(face.top() / self.scale),
                    int(face.right() / self.scale),
                    int(face.bottom() / self.scale))
        self.detector = dlib.cnn_face_detection_model_v1(  # pylint: disable=c-extension-no-member
            self.model_path)
      def initialize(self, *args, **kwargs):
          """ Calculate batch size """
          print("Initializing Dlib-CNN Detector...")
          super().initialize(*args, **kwargs)
        self.detector = dlib.cnn_face_detection_model_v1(  # pylint: disable=c-extension-no-member
            self.model_path)
          is_cuda = self.compiled_for_cuda()
          if is_cuda:
              vram_free = self.get_vram_free()
          else:
              vram_free = 2048
keep keep keep keep replace keep keep keep keep keep
 dlib-cnn: Inconsistent image size bugfix 
plugins/extract/detect/dlib_cnn.py