deep_sort icon indicating copy to clipboard operation
deep_sort copied to clipboard

Improper Bounding box

Open ngaurav07 opened this issue 4 years ago • 10 comments

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

ngaurav07 avatar Aug 23 '20 14:08 ngaurav07

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!

spranjal25 avatar Oct 07 '20 14:10 spranjal25

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

akashAD98 avatar May 17 '21 08:05 akashAD98

@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?

spranjal25 avatar May 17 '21 08:05 spranjal25

@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 [email protected] so we will discuss more on this.Thanks

akashAD98 avatar May 17 '21 13:05 akashAD98

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

ngaurav07 avatar May 17 '21 14:05 ngaurav07

could you send the output ?

ngaurav07 avatar May 17 '21 14:05 ngaurav07

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

akashAD98 avatar Sep 06 '21 08:09 akashAD98

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

ngaurav07 avatar Sep 07 '21 03:09 ngaurav07

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

akashAD98 avatar Sep 07 '21 06:09 akashAD98

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!

hsiaochinglin avatar Oct 20 '23 05:10 hsiaochinglin