ONNX export bug fix #93
This commit is contained in:
1 parent
8b26e89006
commit
e1e3399286
1 file changed
+1
-1
@@ -25,7 +25,7 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
# 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()
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user