nwojke / deep_sort

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

Improper Bounding box #223

Open ngaurav07 opened 4 years ago

ngaurav07 commented 4 years ago

I am applying deep sort in my college project with yolov4 . Everything is right except in some videos bounding boxes are large and wide than YOLO. YOLO has good bounding box outcome but deep sort has output of larger boxes. Hope to get answer soon. Thankyou in advance

spranjal25 commented 3 years ago

I am applying deep sort in my college project with yolov4 . Everything is right except in some videos bounding boxes are large and wide than YOLO. YOLO has good bounding box outcome but deep sort has output of larger boxes. Hope to get answer soon. Thankyou in advance

Hi @gaulove , I am also trying to implement something similar would you be able to give me some idea on how did you integrate your detection model with this tracker?. Thanks in advance!

akashAD98 commented 3 years ago

@spranjal25 @gaulove i am also facing the same issue https://github.com/guhuozhengling/deepsort_yolov4/issues/6 please let me know if you get solution.

spranjal25 commented 3 years ago

@spranjal25 @gaulove i am also facing the same issue https://github.com/guhuozhengling/deepsort_yolov4/issues/6 please let me know if you get solution.

hi @akashAD98 , I solved the issue. you should check the bounding boxes that you might be returning to the DeepSORT model follow a particular format. For my case I didn't use this implementation of DeepSORT. However, if you look at the basic procedure, your detector passes the bounding box detections to the tracker and then the tracker keeps updating those boxes for the mentioned frames, The reasons why your boxes are abnormally placed can be:

  1. The coordinates are normalized and they are not multiplied with the image dimensions while plotting on the frame (opencv functions)
  2. the other reason, very unlikely to be though, can be a problem with your weights.

Can you tell me what procedure you followed exactly?

akashAD98 commented 3 years ago

@spranjal25 I was using pre-trained weights of yolov4-CSP & yolov4-mish, I was successfully detected with yolov4.weights. but for this csp& mish, I'm getting a big bounding box.I think due to a change in the structure of yolov4-csp=mish maybe this is problem. because bbox calculation is different in scaled yolo . can you please ping me on aksdesai1998@gmail.com so we will discuss more on this.Thanks

ngaurav07 commented 3 years ago

Yes i solved this issue by converting from tlwh format to others

ngaurav07 commented 3 years ago

could you send the output ?

akashAD98 commented 3 years ago

@ngaurav07 hey can you share the script of object tracking? Thanks in advance.

ngaurav07 commented 3 years ago

Sorry, Bro, I have left that company and cant share it. I can help you in case of any problems.

akashAD98 commented 3 years ago

@ngaurav07 have you converted yolov4-mish weight into tensorflow saved model format? or are you directly using yolo weight for tracking object?

hsiaochinglin commented 11 months ago

1697778609912 Hi, I have a similar problem about bounding box. I can run the video but my output video is like the picture i paste. Can anyone give me a suggestion? thanks a lot!