Update paths of torch models

This commit is contained in:
Tobias Eidelpes 2023-01-19 22:10:34 +01:00
parent f9b2c25fe5
commit 93f3296eff

View File

@ -158,8 +158,6 @@ if __name__ == '__main__':
opt = parser.parse_args()
if opt.source:
detect(opt.source, 'runs/train/yolov7-custom7/weights/best.pt',
'resnet.pt')
detect(opt.source, 'yolo.pt', 'resnet.pt')
if opt.onnx:
export_to_onnx('runs/train/yolov7-custom7/weights/best.pt',
'resnet.pt')
export_to_onnx('yolo.pt', 'resnet.pt')