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

_pickle.UnpicklingError: invalid load key, '<'. #307

Closed
1 of 2 tasks
aamirali13 opened this issue Sep 5, 2024 · 4 comments
Closed
1 of 2 tasks

_pickle.UnpicklingError: invalid load key, '<'. #307

aamirali13 opened this issue Sep 5, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@aamirali13
Copy link

Search before asking

  • I have searched the Roboflow Notebooks issues and found no similar bug report.

Notebook name

Track and Count Vehicles with YOLOv8 + ByteTRACK + Supervision

Bug

I was trying to run the notebook by using my own weights but getting the mentioned error throughout. It's not working for even the weights which are shared with link.

Environment

Google colab

Minimal Reproducible Example

!python detect.py --weights content/best.pt --img 1280 --conf 0.25 --source content/08fd33_4.mp4 --name custom

or

model = torch.hub.load('ultralytics/yolov5', 'custom', WEIGHTS_PATH, device=0,force_reload=True)

Additional

No response

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!
@aamirali13 aamirali13 added the bug Something isn't working label Sep 5, 2024
@LinasKo
Copy link
Contributor

LinasKo commented Sep 5, 2024

Hi @aamirali13 👋

The notebook you mentioned uses Yolov8, whereas the code you pasted mentions yolov5. These two models are incompatible - maybe that's related to your issue?

@aamirali13
Copy link
Author

Sorry for the misunderstanding.
Notebook : Football Players Tracking with YOLOv5 + ByteTRACK

This is what I am trying to run and getting issue.

@LinasKo
Copy link
Contributor

LinasKo commented Sep 19, 2024

Hi @aamirali13, unfortunately, figuring out the issue is taking more time than I have to spare.

Instead, I'd like to offer an alternative. Instead of this 2-year-old notebook, here's a recent project by my colleague, digging very deep into the problem of tracking in football. Unlike this notebook, it uses recent models and supervision features.

While there's a little bit more info to pick through, I bet you'll find it both more performant and easier to use (that's what we've been working towards!).

Alternatively, if you're looking for a quick way to track objects, check out our docs: https://supervision.roboflow.com/latest/how_to/track_objects/

Best of luck!

@LinasKo LinasKo closed this as completed Sep 19, 2024
@aamirali13
Copy link
Author

Ok Thanks @LinasKo
I'll definitely look into your suggested resource

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants