Paddle2ONNX icon indicating copy to clipboard operation
Paddle2ONNX copied to clipboard

转换时,deformable_conv算子不支持

Open xu-peng-7 opened this issue 2 years ago • 7 comments

请将下面信息填写完整,便于我们快速解决问题,谢谢!

问题描述

训练完成基于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 中提到已经支持了该算子,请问该如何修改?

xu-peng-7 avatar Sep 15 '22 02:09 xu-peng-7

另外的一个问题时,如果我希望自自己实现算子,有没有相关的文档教程提供?

xu-peng-7 avatar Sep 15 '22 02:09 xu-peng-7

paddle2onnx转换的时候指定--enable_dev_version False来进行转换

yeliang2258 avatar Sep 15 '22 03:09 yeliang2258

@xu-peng-7 你现在解决这个问题了吗?

heyuhhh avatar Nov 06 '22 13:11 heyuhhh

ValueError: Support deformable_groups equal 1, actually got deformable_groups==2.

huizhang0110 avatar Nov 16 '22 12:11 huizhang0110

实测paddleOCR升级到release/2.6 db++可以成功转成onnx; onnx==1.10.0 paddle2onnx==1.0.2

kingwpf avatar Nov 18 '22 03:11 kingwpf

具体的转换命令行能提供一下吗?

apexg avatar Mar 22 '23 07:03 apexg

@huizhang0110 were you able to solve the ValueError?

HawkingRadiation42 avatar Feb 01 '24 06:02 HawkingRadiation42