ByteTrack icon indicating copy to clipboard operation
ByteTrack copied to clipboard

BYTETracker with another detector result

Open atousaz opened this issue 3 years ago • 3 comments

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

atousaz avatar Feb 06 '22 21:02 atousaz

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, ...

LamnouarMohamed avatar Feb 08 '22 10:02 LamnouarMohamed

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?

atousaz avatar Feb 08 '22 15:02 atousaz

I also have this "problem".

Rafhael369 avatar Feb 09 '23 17:02 Rafhael369