comparison scripts/dltrack.py @ 1221:5a207c838323

correcting recursive errors
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Mon, 19 Jun 2023 22:37:45 -0400
parents 8a626226793e
children 759d76d6d20c
comparison
equal deleted inserted replaced
1220:2dc9899b73ae 1221:5a207c838323
11 # tracker model 11 # tracker model
12 parser.add_argument('--display', dest = 'display', help = 'show the results (careful with long videos, risk of running out of memory)', action = 'store_true') 12 parser.add_argument('--display', dest = 'display', help = 'show the results (careful with long videos, risk of running out of memory)', action = 'store_true')
13 args = parser.parse_args() 13 args = parser.parse_args()
14 14
15 # Load a model 15 # Load a model
16 model = YOLO('/home/nicolas/Research/Data/classification-models/yolov8x.pt ') # seg yolov8x-seg.pt 16 model = YOLO('/home/nicolas/Research/Data/classification-models/yolov8x.pt') # seg yolov8x-seg.pt
17 # seg could be used on cropped image... if can be loaded and kept in memory 17 # seg could be used on cropped image... if can be loaded and kept in memory
18 # model = YOLO('/home/nicolas/Research/Data/classification-models/yolo_nas_l.pt ') # AttributeError: 'YoloNAS_L' object has no attribute 'get' 18 # model = YOLO('/home/nicolas/Research/Data/classification-models/yolo_nas_l.pt ') # AttributeError: 'YoloNAS_L' object has no attribute 'get'
19 19
20 # Track with the model 20 # Track with the model
21 if args.display: 21 if args.display: