Skip to content

Commit 22cab46

Browse files
committed
update shapes
1 parent 1f1cb88 commit 22cab46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

onnx_diagnostic/tasks/object_detection.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ def get_inputs(
5151
shapes = {
5252
"pixel_values": {
5353
0: torch.export.Dim("batch", min=1, max=1024),
54-
2: torch.export.Dim("width", min=1, max=4096),
55-
3: torch.export.Dim("height", min=1, max=4096),
56-
},
54+
2: "width",
55+
3: "height",
56+
}
5757
}
5858
inputs = dict(
5959
pixel_values=torch.randn(batch_size, input_channels, input_width, input_height).clamp(

0 commit comments

Comments
 (0)