[Feature][Relax][ONNX] Support DeformConv (Deformable Convolution) in Relax ONNX frontend

オープン
#20,968 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python

調査の方向性

Start in python/tvm/relax/frontend/onnx/onnx_frontend.py and review the ONNX DeformConv specification at opset 19+, including its inputs, attributes, and optional bias and mask. Determine how the frontend represents sampling, bilinear interpolation, and convolution in Relax; done means importing DeformConv nodes produces equivalent calls with offsets and masks handled as described.

索引モデルが issue の本文から書いたものです。

説明

Feature Description

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.

Operator Specification (ONNX Opset 19+)
  • Inputs:
    1. X: 4D input feature map (N, C_in, H_in, W_in).
    2. W: 4D weight tensor (C_out, C_in/group, kH, kW).
    3. offset: 4D offset tensor (N, 2 * offset_group * kH * kW, H_out, W_out) containing spatial sampling displacements.
    4. B (optional): 1D bias tensor (C_out).
    5. mask (optional): 4D modulation mask tensor (N, mask_group * kH * kW, H_out, W_out) for modulated deformable convolutions (DCNv2).
  • Attributes:
    • dilations: list of ints (default [1, 1])
    • group: int (default 1)
    • kernel_shape: list of ints
    • offset_group: int (default 1)
    • pads: list of ints
    • strides: list of ints (default [1, 1])
  • Outputs:
    1. Y: 4D output feature map (N, C_out, H_out, W_out).
Expected Behavior

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.

主要言語
Python
スター
13.9k
フォーク
4.1k
平均マージ
4日 22時間
マージ済み PR(30日)
22

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/tvm のほかの issue

apache/tvm の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。