Closed ryx2 closed 4 months ago
please try to set lang to 'ch', or use the en_PP-OCRv4_rec model.
So what you're saying is that ch_PP-OCRv4_rec_server_infer
doesn't actually support English?
ch_PP-OCRv4_rec_server_infer
supports Chinese + English.
lang=en supports pure English, "en" and "ch" correspond to different dictionaries respectively.
Model and dictionary need to be consistent, so when you use ch_PP-OCRv4_rec_server_infer
, do not modify the lang parameters.
Ah I see now, Chinese + English != {Chinese, English}, got it
I notice if I am calling
this works fine. However, If i set the rec model to the server version as well (
ch_PP-OCRv4_rec_server_infer
), then I get the following error:Which I'm guessing is because it's trying to output Chinese, which has an 8000 character dict, whereas English only has 90 or so. Because it says english is supported by the server model (https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.7/doc/doc_ch/models_list.md), is it possible to get the ppocrv4 server model to output english successfully?