Skip to content

Commit 9f8c2b4

Browse files
authored
Merge pull request #35 from rsnk96/patch-1
Fix exporting onnx file that can only be used for inference with max batch size of 1
2 parents 59fd1ee + 780ec23 commit 9f8c2b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/deployment/export_onnx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def forward(self, images, orig_target_sizes):
5151

5252
model = Model()
5353

54-
data = torch.rand(1, 3, 640, 640)
54+
data = torch.rand(32, 3, 640, 640)
5555
size = torch.tensor([[640, 640]])
5656
_ = model(data, size)
5757

0 commit comments

Comments
 (0)