Skip to content
Snippets Groups Projects
Commit 736fdf49 authored by Laurent COLBOIS's avatar Laurent COLBOIS
Browse files

[Fix][FaceCrop] Feed annotator with list of images

parent 559ccd8c
No related branches found
No related tags found
1 merge request!99[Fix][FaceCrop] Feed annotator with list of images
Pipeline #47725 failed
...@@ -346,7 +346,7 @@ class FaceCrop(Base): ...@@ -346,7 +346,7 @@ class FaceCrop(Base):
and not self.fixed_positions and not self.fixed_positions
and self.annotator is not None and self.annotator is not None
): ):
annot = self.annotator(image, annotations=annot) annot = self.annotator([image], annotations=[annot])[0]
if not self.is_annotations_valid(annot): if not self.is_annotations_valid(annot):
logger.warn( logger.warn(
"The annotator failed and the annot are missing too" "The annotator failed and the annot are missing too"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment