ByteTrack
ByteTrack copied to clipboard
BYTETracker with another detector result
when im trying to use
from yolox.tracker.byte_tracker import BYTETracker
tracker = BYTETracker(args)
for image in images:
dets = detector(image)
online_targets = tracker.update(dets, info_imgs, img_size)
with detection result from another detector i get following error
'list' object has no attribute 'track_thresh'
i was wondering how can i resolve this
my suggest you need to adopt your output of detector to input of tracker.update like: output of detector : [box1, box2, ....] box form [x, y, w, h] and input tracker.update take : [Object1, Object2, ..] then you need to convert you output of detector to same input of tracker.update. you need to transfrom from box1 is list to Object Object1 which is instance of class whatever, which contains some another variables llike your case track_thresh, ...
my suggest you need to adopt your output of detector to input of tracker.update like: output of detector : [box1, box2, ....] box form [x, y, w, h] and input tracker.update take : [Object1, Object2, ..] then you need to convert you output of detector to same input of tracker.update. you need to transfrom from box1 is list to Object Object1 which is instance of class whatever, which contains some another variables llike your case track_thresh, ...
I didnt understand your answer, would you mind to give numeric example?
I also have this "problem".