This commit is contained in:
Glenn Jocher 2019-12-04 15:10:16 -08:00
parent 5a14f54b2d
commit 54daa69adb
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ def detect(save_txt=False, save_img=False):
# Export mode
if ONNX_EXPORT:
img = torch.zeros((1, 3) + img_size) # (1, 3, 320, 192)
torch.onnx.export(model, img, 'weights/export.onnx', verbose=False, opset_version=11)
torch.onnx.export(model, img, 'weights/export.onnx', verbose=False, opset_version=10)
# Validate exported model
import onnx