Paddle2ONNX
Paddle2ONNX copied to clipboard
转换时,deformable_conv算子不支持
请将下面信息填写完整,便于我们快速解决问题,谢谢!
问题描述
训练完成基于DBnet++的paddleOCR文字检测模型。在转为onnx时报算子不支持的错误。
[Paddle2ONNX] Start to parse PaddlePaddle model... [Paddle2ONNX] Model file path: work/inference.pdmodel [Paddle2ONNX] Paramters file path: work/inference.pdiparams [Paddle2ONNX] Start to parsing Paddle model... [Paddle2ONNX] Oops, there are some operators not supported yet, including deformable_conv, [ERROR] Due to the unsupported operators, the conversion is aborted.
但是在又看到issue https://github.com/PaddlePaddle/Paddle2ONNX/issues/167 中提到已经支持了该算子,请问该如何修改?
另外的一个问题时,如果我希望自自己实现算子,有没有相关的文档教程提供?
paddle2onnx转换的时候指定--enable_dev_version False来进行转换
@xu-peng-7 你现在解决这个问题了吗?
ValueError: Support deformable_groups equal 1, actually got deformable_groups==2.
实测paddleOCR升级到release/2.6 db++可以成功转成onnx; onnx==1.10.0 paddle2onnx==1.0.2
具体的转换命令行能提供一下吗?
@huizhang0110 were you able to solve the ValueError?