Browse Source

onnx_export.py bug fix #224

5.0
Glenn Jocher 4 years ago
parent
commit
0bc80e1e57
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      models/onnx_export.py

+ 1
- 0
models/onnx_export.py View File

@@ -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…
Cancel
Save