polish warning
This commit is contained in:
parent
4ca78a0748
commit
ae18273a1a
|
@ -108,8 +108,8 @@ def process_image(img,
|
||||||
if len(text) == 0 or len(text) > max_text_length:
|
if len(text) == 0 or len(text) > max_text_length:
|
||||||
logger.info(
|
logger.info(
|
||||||
"Warning in ppocr/data/rec/img_tools.py:line106: Wrong data type."
|
"Warning in ppocr/data/rec/img_tools.py:line106: Wrong data type."
|
||||||
"Excepted string with length between 0 and {}, but "
|
"Excepted string with length between 1 and {}, but "
|
||||||
"got '{}' ".format(max_text_length, label))
|
"got '{}'. Label is '{}'".format(max_text_length, len(text),label))
|
||||||
return None
|
return None
|
||||||
else:
|
else:
|
||||||
if loss_type == "ctc":
|
if loss_type == "ctc":
|
||||||
|
|
Loading…
Reference in New Issue