Commit 909e3421 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Merge branch 'p1' into 'master'

Improve the warning message in FaceCrop

See merge request !57
parents b109e352 3251ba42
Pipeline #30784 failed with stages
in 32 minutes and 59 seconds
......@@ -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