You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature][Relax][ONNX] Support DeformConv (Deformable Convolution) in Relax ONNX frontend #20968
Support the ONNX DeformConv (Deformable Convolution) operator in the Apache TVM Relax ONNX frontend (python/tvm/relax/frontend/onnx/onnx_frontend.py).
Motivation
Deformable Convolution (DCNv2/DCNv3) is an essential architectural component in modern computer vision architectures for object detection, instance segmentation, and pose estimation (such as DETR, Mask DINO, and YOLOv9). It augments standard grid convolutions with learned 2D spatial offsets, allowing receptive fields to dynamically adapt to object scales and geometry.
Standardized in ONNX opset 19+, DeformConv is currently not supported in the Relax ONNX frontend. Importing ONNX models containing deformable convolutions fails with:
NotImplementedError: The following operators are not supported: ['DeformConv']
This operator was also highlighted in the ONNX coverage RFC tracking issue #20124 under Convolution operators.
The Relax ONNX frontend should convert DeformConv nodes into equivalent Relax calls by sampling spatial locations with bilinear interpolation based on the offsets and masks, and convolving with kernel weights.
Activity