Skip to content

Commit

Permalink
speed up onnx output
Browse files Browse the repository at this point in the history
  • Loading branch information
TNTwise committed May 23, 2024
1 parent 7c65e31 commit ad8a89c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/torch/UpscaleImageTensorRT.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def pytorchExportToONNX(self): # Loads model via spandrel, and exports to onnx
state_dict = model.state_dict()
model.eval().cuda()
model.load_state_dict(state_dict, strict=True)
input = torch.rand(1, 3, 256, 256).cuda()
input = torch.rand(1, 3, 20, 20).cuda()
if self.half:
try:
model.half()
Expand Down

0 comments on commit ad8a89c

Please sign in to comment.