Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YOLOv9 + DeepSORT #98

Closed
sujanshresstha opened this issue Feb 27, 2024 · 8 comments
Closed

YOLOv9 + DeepSORT #98

sujanshresstha opened this issue Feb 27, 2024 · 8 comments

Comments

@sujanshresstha
Copy link

sujanshresstha commented Feb 27, 2024

Hi,I hope you're doing well. I've integrated YOLOv9 with DeepSORT in the following repository: https://github.com/sujanshresstha/YOLOv9_DeepSORT.git

@jdiaz97
Copy link

jdiaz97 commented Feb 27, 2024

Oh, no. No more AI-generaated messages, please.

@jdiaz97
Copy link

jdiaz97 commented Feb 27, 2024

Congrats @sujanshresstha seems very good!

@sujanshresstha
Copy link
Author

Hi @jdiaz97,
Thank you for your positive feedback! Indeed, integrating YOLOv9 with DeepSORT opens up a lot of exciting possibilities. I appreciate your support!

@WongKinYiu
Copy link
Owner

Added to readme.

@WongKinYiu
Copy link
Owner

@sujanshresstha

I am not sure, but you may need to check which one is correct.
for det in results.pred[0]: or for det in results.pred[1]:
https://github.com/sujanshresstha/YOLOv9_DeepSORT/blob/main/object_tracking.py#L60

@sujanshresstha
Copy link
Author

@WongKinYiu,

I have opted to use for det in results.pred[0]: instead of for det in results.pred[1]: due to the following reason:

Inside the DetectMultiBackend class, there are lines of code:

if self.pt:  # PyTorch
    y = self.model(im, augment=augment, visualize=visualize) if augment or visualize else self.model(im)

if isinstance(y, (list, tuple)):
    return self.from_numpy(y[0]) if len(y) == 1 else [self.from_numpy(x) for x in y]

Since the model outputs an aggregated single tensor even for multiple object detection, len(y) == 1.

I have double-checked with for det in results.pred[1]:, but it throws an IndexError: list index out of range since len(results.pred) = 1.

@karthikbalu
Copy link

karthikbalu commented Mar 8, 2024

Bytetrack is better for practical application than Deepsort for less latency

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@karthikbalu @WongKinYiu @jdiaz97 @sujanshresstha and others