                           for face in faces]
  
              for face in faces:
                  face = self.convert_to_dlib_rectangle(face)
                  face = dlib.rectangle(int(face.left() / self.scale),
                                        int(face.top() / self.scale),
                                        int(face.right() / self.scale),
                                        int(face.bottom() / self.scale))
                  detected_faces.append(face)
              if indexes:
                  target = indexes[idx]
                  output[target] = detected_faces
              else:
 
</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                 batch_detected = self.detector(detect_images, 0)
 </s> add                 batch_detected = self.detect_batch(detect_images) </s> remove         cuda = dlib.DLIB_USE_CUDA
 </s> add         cuda = dlib.DLIB_USE_CUDA  # pylint: disable=c-extension-no-member
                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))
                           for face in faces]
  
              for face in faces:
                  face = self.convert_to_dlib_rectangle(face)
                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))
                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))
                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))
                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))
                  detected_faces.append(face)
              if indexes:
                  target = indexes[idx]
                  output[target] = detected_faces
              else:
keep keep keep keep replace replace replace replace keep keep keep keep keep
 dlib-cnn: Inconsistent image size bugfix 
plugins/extract/detect/dlib_cnn.py