glenn-jocher commited on
Commit
0bc80e1
1 Parent(s): ec8554a

onnx_export.py bug fix #224

Browse files
Files changed (1) hide show
  1. models/onnx_export.py +1 -0
models/onnx_export.py CHANGED
@@ -17,6 +17,7 @@ if __name__ == '__main__':
17
  parser.add_argument('--img-size', nargs='+', type=int, default=[640, 640], help='image size')
18
  parser.add_argument('--batch-size', type=int, default=1, help='batch size')
19
  opt = parser.parse_args()
 
20
  print(opt)
21
 
22
  # Parameters
 
17
  parser.add_argument('--img-size', nargs='+', type=int, default=[640, 640], help='image size')
18
  parser.add_argument('--batch-size', type=int, default=1, help='batch size')
19
  opt = parser.parse_args()
20
+ opt.img_size *= 2 if len(opt.img_size) == 1 else 1
21
  print(opt)
22
 
23
  # Parameters