updates
This commit is contained in:
parent
5a14f54b2d
commit
54daa69adb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue