From 27c75b521084039f2b555c5873832e3a41928c80 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Thu, 30 Jan 2020 12:37:47 -0800 Subject: [PATCH] updates --- detect.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/detect.py b/detect.py index d14ca47f..889ca689 100644 --- a/detect.py +++ b/detect.py @@ -45,7 +45,7 @@ def detect(save_img=False): if ONNX_EXPORT: model.fuse() 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 import onnx @@ -159,7 +159,7 @@ if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--cfg', type=str, default='cfg/yolov3-spp.cfg', help='*.cfg path') parser.add_argument('--names', type=str, default='data/coco.names', help='*.names path') - parser.add_argument('--weights', type=str, default='weights/yolov3-spp.weights', help='path to weights file') + parser.add_argument('--weights', type=str, default='weights/ultralytics68.pt', help='path to weights file') parser.add_argument('--source', type=str, default='data/samples', help='source') # input file/folder, 0 for webcam parser.add_argument('--output', type=str, default='output', help='output folder') # output folder parser.add_argument('--img-size', type=int, default=416, help='inference size (pixels)')