Skip to content

Commit

Permalink
chore: Update torch2onnx.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yakhyo committed May 19, 2024
1 parent c5948b5 commit f2ece5e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils/torch2onnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def torch2onnx_export(params):

model = BiSeNet(num_classes, backbone_name=params.model)
model.load_state_dict(torch.load(params.weight))
model.eval()

onnx_model_path = params.weight.replace(".pt", ".onnx")

Expand Down

0 comments on commit f2ece5e

Please sign in to comment.