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

ch_PP-OCRv3_det_infer 从paddle转换为 pytorch报错 #66

Open
songchuanle-1 opened this issue Feb 10, 2023 · 1 comment
Open

ch_PP-OCRv3_det_infer 从paddle转换为 pytorch报错 #66

songchuanle-1 opened this issue Feb 10, 2023 · 1 comment

Comments

@songchuanle-1
Copy link

里边没有 ch_PP-OCRv3_det_infer推理模型中没有pdot文件等

W0210 16:42:27.085924 24096 gpu_resources.cc:61] Please NOTE: device: 0, GPU Compute Capability: 8.6, Driver API Version: 11.6, Runtime API Version: 11.1
W0210 16:42:27.108862 24096 gpu_resources.cc:91] device: 0, cuDNN Version: 8.0.
Traceback (most recent call last):
File "D:/software/app/pycharm_community/实验/PaddleOCR2Pytorch-main/test.py", line 10, in
a = paddle.fluid.load_dygraph('./model/ch_PP-OCRv3_det_infer')
File "D:\software\app\Anaconda\iro\envs\d5\lib\site-packages\paddle\fluid\dygraph\checkpoint.py", line 283, in load_dygraph
_dygraph_tracer().trace_op(
File "D:\software\app\Anaconda\iro\envs\d5\lib\site-packages\paddle\fluid\dygraph\tracer.py", line 307, in trace_op
self.trace(type, inputs, outputs, attrs,
ValueError: (InvalidArgument) Deserialize to tensor failed, maybe the loaded file is not a paddle model(expected file format: 0, but 1904018048 found).
[Hint: Expected version == 0U, but received version:1904018048 != 0U:0.] (at ..\paddle\fluid\framework\lod_tensor.cc:276)
[operator < load > error]

Process finished with exit code 1

@frotms
Copy link
Owner

frotms commented Feb 12, 2023

@songchuanle-1 模型转换使用的是paddle的训练模型,不是推理模型

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

2 participants