ValueError: not find model.pdmodel or inference.pdmodel in output/v3_en_mobile/best_model #13085
Replies: 3 comments 6 replies
-
You can refer this doc
|
Beta Was this translation helpful? Give feedback.
-
@kishore-work-hard If you want to test your trained model, you need to follow these steps:
By following these two steps, you will resolve the issue you encountered. |
Beta Was this translation helpful? Give feedback.
-
@kishore-work-hard I guess the script automatically downloads URL files because it cannot find your model.pdmodel or inference.pdmodel files during inference testing, so it downloads the inference model from the default URL. |
Beta Was this translation helpful? Give feedback.
-
I found answers in Chinese but I don't know Chinese
But i trained a model successfully. and in
output/v3_en_mobile/best_model
path folder i havemodel.pdopt
andmodel.pdparams
.after training my recognition model
i used the command to test my script -
python tools/infer/predict_rec.py --image_dir="img/a (6).jpg" --rec_model_dir="output/v3_en_mobile/best_model" --rec_image_shape="3, 32, 100" --rec_char_dict_path="ppocr/utils/en_dict.txt"
and got this error -
dict used -
ppocr/utils/en_dict.txt
after getting this error I tried the below code.
and using the code - I figured it that this script downloads file automatically from this URL
https://paddleocr.bj.bcebos.com/PP-OCRv4/chinese/ch_PP-OCRv4_rec_infer.tar
But I want english model. so i replaced it with en and english
should i be downloading the file from this -
https://paddleocr.bj.bcebos.com/PP-OCRv4/english/en_PP-OCRv4_rec_infer.tar
what i mean is...
after custom training my rec model. should I be using this files from en_PP-OCRv4_rec_infer.tar after downloading it.?
Or
should this file be used for pretrained model and should not be used by custom trained model?
please explain what's happening. and what is this
inference.pdmodel
andinference.pdiparams
?Beta Was this translation helpful? Give feedback.
All reactions