Commit df0b3ff7 authored by Laurent COLBOIS's avatar Laurent COLBOIS

Add more explicit message if BoundingBoxCropAnnotator fails to detect a face

parent b97a8621
......@@ -610,7 +610,7 @@ class BoundingBoxAnnotatorCrop(Base):
or annotator_annotations["reye"][1] > annotator_annotations["leye"][1]
f"Wrong annotations: {annotator_annotations}. Rescaling images"
f"Unable to detect face in bounding box. Got : {annotator_annotations}. Cropping will be only based on bounding-box."
face_crop = scale(face_crop, self.cropped_image_size)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment