              while True:
                  exhausted, batch = self.get_batch()
                  filenames, images = map(list, zip(*batch))
                  detect_images = self.compile_detection_images(images)
                  batch_detected = self.detector(detect_images, 0)
                  processed = self.process_output(batch_detected,
                                                  indexes=None,
                                                  rotation_matrix=None,
                                                  output=None)
                  if not all(faces
 
</s> remove         self.detector = dlib.cnn_face_detection_model_v1(self.model_path)
 </s> add         self.detector = dlib.cnn_face_detection_model_v1(  # pylint: disable=c-extension-no-member
            self.model_path) </s> remove         cuda = dlib.DLIB_USE_CUDA
 </s> add         cuda = dlib.DLIB_USE_CUDA  # pylint: disable=c-extension-no-member </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))
                batch_detected = self.detect_batch(detect_images)
              while True:
                  exhausted, batch = self.get_batch()
                  filenames, images = map(list, zip(*batch))
                  detect_images = self.compile_detection_images(images)
                batch_detected = self.detect_batch(detect_images)
                  processed = self.process_output(batch_detected,
                                                  indexes=None,
                                                  rotation_matrix=None,
                                                  output=None)
                  if not all(faces
keep keep keep keep replace keep keep keep keep keep
 dlib-cnn: Inconsistent image size bugfix 
plugins/extract/detect/dlib_cnn.py