Skip to content

Commit

Permalink
Merge pull request #1777 from mikel-brostrom/args-as-list
Browse files Browse the repository at this point in the history
fix when no model selected
  • Loading branch information
mikel-brostrom authored Dec 29, 2024
2 parents 12e95e8 + c6380d1 commit 90797e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tracking/val.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,8 @@ def parse_opt() -> argparse.Namespace:
parser = argparse.ArgumentParser()

# Global arguments
parser.add_argument('--yolo-model', nargs='+', type=Path, default=WEIGHTS / 'yolov8n.pt', help='yolo model path')
parser.add_argument('--reid-model', nargs='+', type=Path, default=WEIGHTS / 'osnet_x0_25_msmt17.pt', help='reid model path')
parser.add_argument('--yolo-model', nargs='+', type=Path, default=[WEIGHTS / 'yolov8n.pt'], help='yolo model path')
parser.add_argument('--reid-model', nargs='+', type=Path, default=[WEIGHTS / 'osnet_x0_25_msmt17.pt'], help='reid model path')
parser.add_argument('--source', type=str, help='file/dir/URL/glob, 0 for webcam')
parser.add_argument('--imgsz', '--img', '--img-size', nargs='+', type=int, default=None, help='inference size h,w')
parser.add_argument('--conf', type=float, default=0.5, help='confidence threshold')
Expand Down

0 comments on commit 90797e3

Please sign in to comment.