Open cczarnuch opened 3 years ago
Here are some things that I have found in chronological order:
In the attempt1 branch I just created, I left detections.py alone, but fixed the method 'update' and I removed the useless converion of tlwh-xywh-tlwh ( found in steps 6-7)
YOLOv5 produces output bounding boxes of the format TLWH (top-left, width, height). The bounding boxes deepsort takes as input are of the format XYWH (center x, y, width, height). During the deepsort run() function the bounding boxes' features are determined using the XYWH format, then they are converted to TLWH format. The TLWH format is used to create a
Detection
object which is updated in the tracker.predict() method. The output boxes are saved as a TLWH format bounding box and then converted to XYWH format bounding box.The goal of this story will be to not only correct the bounding boxes, but also to ensure that the least number of conversions between boxes are done. Another goal would be to remove unused conversion functions.