瀏覽代碼

ONNX export bug fix #93

5.0
Glenn Jocher 4 年之前
父節點
當前提交
e1e3399286
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      models/onnx_export.py

+ 1
- 1
models/onnx_export.py 查看文件

@@ -25,7 +25,7 @@ if __name__ == '__main__':

# Load pytorch model
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.fuse()


Loading…
取消
儲存