提交 e1e33992 authored 作者: Glenn Jocher's avatar Glenn Jocher

ONNX export bug fix #93

上级 8b26e890
......@@ -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()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论