Skip to content
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

在转换en-v3rec模型时报错,不知该如何解决 #2

Open
YK7458 opened this issue Mar 18, 2024 · 0 comments
Open

在转换en-v3rec模型时报错,不知该如何解决 #2

YK7458 opened this issue Mar 18, 2024 · 0 comments

Comments

@YK7458
Copy link

YK7458 commented Mar 18, 2024

image

Traceback (most recent call last):
File "test_recog.py", line 17, in
torch_pprecog_bin = ppRecog(torch_model_file,keys_file)
File "/home/aistudio/work/ocrRecog/infer.py", line 33, in init
weights = torch.load(model_path,map_location='cpu')
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/torch/serialization.py", line 571, in load
with _open_file_like(f, 'rb') as opened_file:
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/torch/serialization.py", line 229, in _open_file_like
return _open_file(name_or_buffer, mode)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/torch/serialization.py", line 210, in init
super(_open_file, self).init(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: './ocrRecog/new_model_dir/recog.pth'
Traceback (most recent call last):
File "test_serviceOCRModule.py", line 36, in
pprecog_bin = ppRecogOpenvino(recog_model_file,recog_keys_file)
File "/home/aistudio/work/serviceOCRModule/ocrRecog/infer.py", line 87, in init
model_ir = ie.read_model(model=model_path)
RuntimeError: Check 'false' failed at src/inference/src/core.cpp:100:
[ NETWORK_NOT_READ ] Unable to read the model: ./serviceOCRModule/ocrRecog/openvino_dir/recog.xml Please check that model format: xml is supported and the model is correct. Available frontends: pytorch onnx ir tf paddle tflite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant