mirror of
https://github.com/ultralytics/yolov5.git
synced 2025-06-03 14:49:29 +08:00
onnx_export.py bug fix #224
This commit is contained in:
parent
ec8554a39b
commit
0bc80e1e57
@ -17,6 +17,7 @@ if __name__ == '__main__':
|
||||
parser.add_argument('--img-size', nargs='+', type=int, default=[640, 640], help='image size')
|
||||
parser.add_argument('--batch-size', type=int, default=1, help='batch size')
|
||||
opt = parser.parse_args()
|
||||
opt.img_size *= 2 if len(opt.img_size) == 1 else 1
|
||||
print(opt)
|
||||
|
||||
# Parameters
|
||||
|
Loading…
x
Reference in New Issue
Block a user