DBNet++ ONNX conversion fails #14930
Replies: 1 comment
-
The error you encountered while converting the DBNet++ model to ONNX using Potential Solutions1. Ensure You're Using a Non-Quantized ModelThe discussion suggests that directly converting a quantized model from PaddleOCR to ONNX may lead to invalid ONNX graph errors during inference. Instead:
2. Verify ONNX Opset VersionYou specified paddle2onnx --model_dir ./inference/det_db \
--model_filename inference.pdmodel \
--params_filename inference.pdiparams \
--save_file ./inference/det_onnx/model.onnx \
--opset_version 13 \
--enable_onnx_checker True This may resolve operator incompatibility issues. 3. Debugging the ConversionEnable additional logging to capture more details about the error: export GLOG_v=3 # Enable detailed logging
paddle2onnx --model_dir ./inference/det_db \
--model_filename inference.pdmodel \
--params_filename inference.pdiparams \
--save_file ./inference/det_onnx/model.onnx \
--opset_version 11 \
--enable_onnx_checker True This may provide more insight into which specific operator is causing the failure. 4. Try a Different ONNX BackendIf you're using ONNX Runtime for inference, check whether another backend like TensorRT or OpenVINO can handle the exported model better. 5. Check Your Paddle2ONNX VersionEnsure you have an updated pip install --upgrade paddle2onnx Old versions may not support recent PaddlePaddle model structures. Next Steps
If the issue persists, please provide the exact error message and model details to further investigate. 🚀 Response generated by 🤖 feifei-bot | chatgpt-4o-latest |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I encounter the above error. Could anyone here help me?
The running command I use
paddle2onnx --model_dir ./inference/det_db
--model_filename inference.pdmodel
--params_filename inference.pdiparams
--save_file ./inference/det_onnx/model.onnx
--opset_version 11
--enable_onnx_checker True
Beta Was this translation helpful? Give feedback.
All reactions