Browse Source

ONNX export bug fix #93

5.0
Glenn Jocher 4 years ago
parent
commit
e1e3399286
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      models/onnx_export.py

+ 1
- 1
models/onnx_export.py View File



# Load pytorch model # Load pytorch model
google_utils.attempt_download(opt.weights) google_utils.attempt_download(opt.weights)
model = torch.load(opt.weights, map_location=torch.device('cpu'))['model']
model = torch.load(opt.weights, map_location=torch.device('cpu'))['model'].float()
model.eval() model.eval()
model.fuse() model.fuse()



Loading…
Cancel
Save