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

PULC 模型转换报错 #1436

Open
xxxyyycc opened this issue Nov 19, 2024 · 4 comments
Open

PULC 模型转换报错 #1436

xxxyyycc opened this issue Nov 19, 2024 · 4 comments
Labels
Bug Something isn't working PaddleClas

Comments

@xxxyyycc
Copy link

PULC 模型:https://github.com/PaddlePaddle/PaddleClas/blob/release/2.5/docs/zh_CN/models/PULC/PULC_text_image_orientation.md
报错信息如下
Traceback (most recent call last):
File "/usr/local/python/bin/paddle2onnx", line 8, in
sys.exit(main())
File "/usr/local/python/lib/python3.8/site-packages/paddle2onnx/command.py", line 145, in main
paddle2onnx.export(
File "/usr/local/python/lib/python3.8/site-packages/paddle2onnx/convert.py", line 41, in export
onnx_model_str = c_p2o.export(
IndexError: Input conv2d_0.w_0 is undefined!

@Zheng-Bicheng
Copy link
Collaborator

是最新的 Paddle2ONNX 嘛?

@Zheng-Bicheng Zheng-Bicheng added Bug Something isn't working PaddleClas labels Nov 19, 2024
@xxxyyycc
Copy link
Author

是最新的 Paddle2ONNX 嘛?

image

@Zheng-Bicheng
Copy link
Collaborator

模型发一下

@xxxyyycc
Copy link
Author

xxxyyycc commented Nov 19, 2024

模型发一下
import paddleclas model = paddleclas.PaddleClas(model_name="text_image_orientation")
用这个代码直接下载的哈
这种方式下载应该也是一样的:
wget https://paddleclas.bj.bcebos.com/models/PULC/text_image_orientation_infer.tar && tar -xf text_image_orientation_infer.tar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working PaddleClas
Projects
None yet
Development

No branches or pull requests

2 participants