Skip to content

Commit 2e0290b

Browse files
committed
Add separate V2 config
1 parent 3ece80f commit 2e0290b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

optimum/exporters/onnx/model_configs.py

+4
Original file line numberDiff line numberDiff line change
@@ -2675,3 +2675,7 @@ def _create_dummy_input_generator_classes(self, **kwargs) -> List["DummyInputGen
26752675
)
26762676
kwargs["width"] = 320
26772677
return super()._create_dummy_input_generator_classes(**kwargs)
2678+
2679+
2680+
class RTDetrV2OnnxConfig(RTDetrOnnxConfig):
2681+
pass

optimum/exporters/tasks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1110,7 +1110,7 @@ class TasksManager:
11101110
),
11111111
"rt-detr-v2": supported_tasks_mapping(
11121112
"object-detection",
1113-
onnx="RTDetrOnnxConfig",
1113+
onnx="RTDetrV2OnnxConfig",
11141114
),
11151115
"sam": supported_tasks_mapping(
11161116
"feature-extraction",

0 commit comments

Comments
 (0)