模型转换:mmcv的ModulatedDeformConv2d算子
收藏回复举报
模型转换:mmcv的ModulatedDeformConv2d算子
t('forum.solved') 已解决
发表于2026-01-07 22:39:49
0 查看

我训练模型的时候加入了mmcv的ModulatedDeformConv2d运算

但是我用atc转在onnx转为om时报错:

(base) root@davinci-mini:/home/HwHiAiUser/yolov8_light_onnx# atc --model=best_fp32_3_magic.onnx --framework=5 --output=best_fp32_3_magic --input_format=NCHW --input_shape="images:1,3,640,640" --soc_version=Ascend310B4
ATC start working now, please wait for a moment.
...
ATC run failed, Please check the detail log, Try 'atc --help' for more information
E19010: No parser is registered for Op [/model.22/DyDCNV2/conv/MMCVModulatedDeformConv2d, optype [ai.onnx::11::MMCVModulatedDeformConv2d]].
    Solution: Check the version of the installation package and reinstall the package. For details, see the operator specifications.
    TraceBack (most recent call last):
    No parser is registered for Op [/model.22/DyDCNV2/conv_1/MMCVModulatedDeformConv2d, optype [ai.onnx::11::MMCVModulatedDeformConv2d]].
    No parser is registered for Op [/model.22/DyDCNV2/conv_2/MMCVModulatedDeformConv2d, optype [ai.onnx::11::MMCVModulatedDeformConv2d]].
    Model parse to graph failed, graph name:best_fp32_3_magic.[FUNC:ModelParseToGraph][FILE:onnx_parser.cc][LINE:925]
    ATC model parse ret fail.[FUNC:ParseGraph][FILE:omg.cc][LINE:780]

我在这里看到这个CANN是支持ModulatedDeformConv2d算子的:
https://www.hiascend.com/document/detail/zh/Pytorch/720/modthirdparty/modparts/thirdpart_0013.html

这是我的版本不对吗

我要发帖子