Skip to content

Commit

Permalink
polish error message
Browse files Browse the repository at this point in the history
  • Loading branch information
tink2123 committed Jun 5, 2020
1 parent 6b208bc commit 9393a1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/infer/predict_rec.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def __call__(self, img_list):
"Please read the FAQ:https://github.com/PaddlePaddle/PaddleOCR#faq \n"
"If your model has tps module: "
"TPS does not support variable shape.\n"
"Please set --rec_image_shape=input_shape and --rec_char_type='en' ")
"Please set --rec_image_shape='3,32,100' and --rec_char_type='en' ")
exit()
for ino in range(len(img_list)):
print("Predicts of %s:%s" % (valid_image_file_list[ino], rec_res[ino]))
Expand Down

0 comments on commit 9393a1b

Please sign in to comment.