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

Can not set input_shape when converting inference model to onnx #1171

Closed
phamkhactu opened this issue Jan 15, 2024 · 0 comments
Closed

Can not set input_shape when converting inference model to onnx #1171

phamkhactu opened this issue Jan 15, 2024 · 0 comments

Comments

@phamkhactu
Copy link

phamkhactu commented Jan 15, 2024

Thanks for excellent work!

I can not set input_shape when converting model ocr to onnx

I had tried setting, convert successfully, but no affect with input_shape:

paddle2onnx --model_dir ./inference/rec_en_ppocr_v4/ --model_filename inference.pdmodel --params_filename inference.pdiparams --save_file ./inference/rec_onnx/ppocr_v4_model.onnx --opset_version 10 --input_shape_dict="{'x':[-1,3, 32,-1]}" --enable_onnx_checker True

Here is my envs:

paddlepaddle-gpu: 2.5.2.post116
paddle2onnx: 1.0.5
onnx: 1.13.1
onnxruntime: 1.14.1

Thanks in advance!!

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