Skip to content

Commit

Permalink
polish warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tink2123 committed Jun 23, 2020
1 parent 4ca78a0 commit ae18273
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ppocr/data/rec/img_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ def process_image(img,
if len(text) == 0 or len(text) > max_text_length:
logger.info(
"Warning in ppocr/data/rec/img_tools.py:line106: Wrong data type."
"Excepted string with length between 0 and {}, but "
"got '{}' ".format(max_text_length, label))
"Excepted string with length between 1 and {}, but "
"got '{}'. Label is '{}'".format(max_text_length, len(text),label))
return None
else:
if loss_type == "ctc":
Expand Down

0 comments on commit ae18273

Please sign in to comment.