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

PaddleX训练的PP-Picodet无法导出,提示缺OP #844

Closed
kisaragychihaya opened this issue Aug 10, 2022 · 5 comments
Closed

PaddleX训练的PP-Picodet无法导出,提示缺OP #844

kisaragychihaya opened this issue Aug 10, 2022 · 5 comments

Comments

@kisaragychihaya
Copy link

训练环境 PaddleX 2.1
导出环境 paddle2onnx-0.9.8
命令paddle2onnx --model_dir ./ -pf model.pdiparams -s output.onnx -ov 11 -mf model.pdmodel --enable_dev_version True
错误输出

[Paddle2ONNX] Start to parse PaddlePaddle model...
[Paddle2ONNX] Model file path: ./model.pdmodel
[Paddle2ONNX] Paramters file path: ./model.pdiparams
[Paddle2ONNX] Start to parsing Paddle model...
[Paddle2ONNX] Only support number of inputs equals to number of outputs for operator 'while'.
[Paddle2ONNX] Oops, there are some operators not supported yet, including conditional_block,lod_array_length,select_input,tensor_array_to_tensor,while,write_to_array,
[ERROR] Due to the unsupported operators, the conversion is aborted.
Aborted (core dumped)

inference_model.zip

@jiangjiajun
Copy link
Collaborator

导出成ONNX的目的是什么啊

@kisaragychihaya
Copy link
Author

放入我们自己的终端推理

@jiangjiajun
Copy link
Collaborator

你们的终端是用什么推理引擎呢

@kisaragychihaya
Copy link
Author

onnxruntime,系统工程比较大,已经不方便再换引擎了

@Zheng-Bicheng
Copy link
Collaborator

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

No branches or pull requests

3 participants