-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Description
请提出你的问题 Please ask your question
Hi,
I'm training a PicoDet XS network on a custom dataset using PaddleDetection. The training completes successfully, and the model export works fine.
However, when I try to convert it to ONNX using paddle2onnx
, I get the following error:
Due to the operator: hard_swish, requires opset_version >= 14.
Checking the PaddleDetection code, I see that HardSwish is used in LCNet and other components. However, I noticed that the pre-converted ONNX model example available in the README does not contain HardSwish.
To resolve this, I tried downgrading PaddleDetection to versions 2.3 and 2.4 (the first versions introducing PicoDet), but the issue persists.
I strictly need an ONNX model with Opset 11 for further conversion.
My questions:
How can I modify the network to avoid HardSwish or any other Opset 14 operators?
Is there a way to obtain the same network as the example ONNX model but compatible with Opset 11?
Any guidance would be greatly appreciated.
Thanks!