updates
This commit is contained in:
parent
5a14f54b2d
commit
54daa69adb
|
@ -43,7 +43,7 @@ def detect(save_txt=False, save_img=False):
|
||||||
# Export mode
|
# Export mode
|
||||||
if ONNX_EXPORT:
|
if ONNX_EXPORT:
|
||||||
img = torch.zeros((1, 3) + img_size) # (1, 3, 320, 192)
|
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
|
# Validate exported model
|
||||||
import onnx
|
import onnx
|
||||||
|
|
Loading…
Reference in New Issue