deep_sort_pytorch icon indicating copy to clipboard operation
deep_sort_pytorch copied to clipboard

Tracking using provided detections

Open EddieEduardo opened this issue 4 years ago • 2 comments

Hello, happy new year! Thanks for sharing the codes.

Can I use these codes to track my own detections? Because I have obtained the detections from the front-end detector, so I just want to use the codes to do the back-end tracking (associating), the size of my images is all 450x705. But I found the codes are integrated with the front-end detector, could you point out the place in which I can use my detections? Thank you very much.

Looking forward to your reply.

EddieEduardo avatar Feb 25 '21 11:02 EddieEduardo

Hi @EddieEduardo, you can replace detector in VideoTracker of yolov3_deepsort.py.

iliiliiliili avatar Mar 30 '21 17:03 iliiliiliili

Hi @EddieEduardo, you can replace detector in VideoTracker of yolov3_deepsort.py.

I want to use Fasterrcnn from pytorch as the detector and I've changed the detector in VideoTracker of deepsort.py, but then when it triggers Extractor in feature_extractor.py, an error occurred:

"state_dict = torch.load(model_path, map_location=lambda storage, loc: storage)[ "net_dict"] TypeError: 'FasterRCNN' object is not subscriptable

even if I load the state_dict of fasterrcnn, there is no "net_dict", I wonder what this is? And I don't quite understand the deep_sort.deep.model.py class Net. how should it be changed according to our chosen model?

susuhu avatar Nov 23 '21 21:11 susuhu