Skip to content

Commit 072e1d9

Browse files
committed
fix shapes for timestep
1 parent ca5103d commit 072e1d9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

optimum/exporters/openvino/model_configs.py

+6
Original file line numberDiff line numberDiff line change
@@ -1812,6 +1812,12 @@ class UnetOpenVINOConfig(UNetOnnxConfig):
18121812
DummyUnetTimestepInputGenerator,
18131813
) + UNetOnnxConfig.DUMMY_INPUT_GENERATOR_CLASSES[2:]
18141814

1815+
@property
1816+
def inputs(self) -> Dict[str, Dict[int, str]]:
1817+
common_inputs = super().inputs
1818+
common_inputs["timestep"] = {0: "batch_size"}
1819+
return common_inputs
1820+
18151821

18161822
@register_in_tasks_manager("sd3-transformer", *["semantic-segmentation"], library_name="diffusers")
18171823
@register_in_tasks_manager("sd3-transformer-2d", *["semantic-segmentation"], library_name="diffusers")

0 commit comments

Comments
 (0)