nwojke / deep_sort

Simple Online Realtime Tracking with a Deep Association Metric
GNU General Public License v3.0
5.19k stars 1.46k forks source link

Using deep_sort on my own dataset #277

Closed aktaseren closed 2 years ago

aktaseren commented 2 years ago

Hi @iory @abewley @linuxandchill @kinnzo @nwojke, thanks a lot for making this code available. Can I ask how I can use this code on my own sample video rather than using MOT16 benchmark datasets?

danielcrane commented 2 years ago

@aktaseren Do you have the bounding boxes and accompanying feature vectors for each frame in the video you're interested in (or a model that can produce them)?

aktaseren commented 2 years ago

@danielcrane yes, I have the info of bounding boxes of the objects I am interested to track per frame in my video. However, in terms of feature vectors, I am not sure. I will check this out. Then, I will let you know here.

As for another question, can I implement a different detection algorithm prior to SORT?

danielcrane commented 2 years ago

@danielcrane yes, I have the info of bounding boxes of the objects I am interested to track per frame in my video. However, in terms of feature vectors, I am not sure. I will check this out. Then, I will let you know here.

If you have no feature vectors, or a network/encoder capable of creating them, then you won't really be able to make use of Deep SORT.

The key difference between SORT and Deep SORT is that it includes the use of feature vectors to improve the identification of objects from frame to frame, where SORT just uses Kalman filter predictions + IoU.

With that in mind, if you only have bounding boxes, I'd advise using regular SORT instead.

As for another question, can I implement a different detection algorithm prior to SORT?

As long as it outputs bounding boxes, you should be able to use any kind of detection algorithm that you want!

aktaseren commented 2 years ago

Thank you very much @danielcrane. That all makes sense for me now.

danielcrane commented 2 years ago

No problem at all, @aktaseren . With regards to using your own detector, just make sure that the bounding boxes are converted to the format SORT/Deep SORT expect to ensure it works smoothly. :)