Skip to content
Snippets Groups Projects
Commit 25feb61e authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Improve the warning message in FaceCrop

parent b109e352
No related branches found
No related tags found
1 merge request!57Improve the warning message in FaceCrop
Pipeline #30781 passed
......@@ -273,8 +273,9 @@ class FaceCrop (Base):
if not self.is_annotations_valid(annotations) and \
not self.fixed_positions and \
self.annotator is None:
logger.warn("Cannot crop face without annotations or fixed_positions "
"or an annotator. Returning None.")
logger.warn("Cannot crop face without valid annotations or "
"fixed_positions or an annotator. Returning None. "
"The annotations were: {}".format(annotations))
return None
# convert to the desired color channel
......
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