Commit 3251ba42 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Improve the warning message in FaceCrop

parent b109e352
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment