updates
This commit is contained in:
parent
740cd177dc
commit
57798278ad
|
@ -45,7 +45,7 @@ def detect(save_img=False):
|
||||||
if ONNX_EXPORT:
|
if ONNX_EXPORT:
|
||||||
model.fuse()
|
model.fuse()
|
||||||
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=10)
|
torch.onnx.export(model, img, 'weights/export.onnx', verbose=False, opset_version=11)
|
||||||
|
|
||||||
# Validate exported model
|
# Validate exported model
|
||||||
import onnx
|
import onnx
|
||||||
|
|
Loading…
Reference in New Issue