未验证 提交 514fd0d1 编写于 作者: D Double_V 提交者: GitHub

Merge pull request #260 from tink2123/polish_warning

polish warning
......@@ -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":
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册