-
Notifications
You must be signed in to change notification settings - Fork 7.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problem in inference of custom trained model #10232
Comments
i cannot access files on drive.google.com. |
I rechecked the links and all files are set to view for anyone with the link. |
Please use https://aistudio.baidu.com/aistudio/index or pan.baidu.com and share the project or file with me。 I cannot access google products for some reasons... |
the problem is solved. |
Problem Resolution
|
how to solve,i encounter same problem |
??? Can you explain please how you solved this problem |
Hi, I've tried to train the paddle ocr model on a single photo to get used to its training pipeline and prepare for an actual project.
I've reached good results in training (acc = 0.99) but when I export the model and try its inference by the same picture I get irrelevant results.
model config file
train log
char_dict_file
train image txt file
picture:
train command:
python tools/train.py -c configs/rec/PP-OCRv3/multi_language/kart_melly.yml
export command:
python .\tools\export_model.py -c configs/rec/PP-OCRv3/multi_language/kart_melly.yml [2023/06/23 00:07:31] ppocr INFO: train from scratch [2023/06/23 00:07:34] ppocr INFO: inference model is saved to ./output/v3_kart_melly_inference\inference
inference command:
python tools/infer/predict_rec.py --image_dir="./train/dataset/img1.png" --rec_model_dir="output\v3_kart_melly_inference" --rec_char_dict_path="ppocr/utils/dict/word_dict_fa.txt" E0623 00:08:03.743561 8404 analysis_config.cc:110] Please use PaddlePaddle with GPU version. [2023/06/23 00:08:03] ppocr INFO: In PP-OCRv3, rec_image_shape parameter defaults to '3, 48, 320', if you are using recognition model with PP-OCRv2 or an older version, please set --rec_image_shape='3,32,320 [2023/06/23 00:08:04] ppocr INFO: Predicts of ./train/dataset/img1.png:('ازاف', 0.0291864313185215)
I am almost sure I am making a simple mistake but no matter how much I read the docs and search in issues I couldn't fix the problem.
thank's for your help.
The text was updated successfully, but these errors were encountered: