-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
AttributeError: 'BOTSORT' object has no attribute 'plot_results' #1744
Comments
I found a workaround by adding the line to the My workaround didn't solve the problem though. See below. Now it just tells me that BYTETracker has no |
Cannot reproduce |
I encountered a similar issue while using StrongSort as the tracking method. The error occurs when running track.py with the --show argument, and it outputs the following: AttributeError: 'StrongSort' object has no attribute 'plot_results' This seems consistent with the issue described here, except for a different tracker being used (StrongSort in my case instead of BOTSORT). Steps to Reproduce:
Environment Details Operating System: Ubuntu 24.04.1 LTS Investigation & Fix: I addressed this locally by adding a simple fallback check for
This fix resolves the issue for me without affecting trackers that already have the plot_results method implemented. Running strongsort still doesn't show real-time bounding boxes with --show, but the output images are correct and without issue. Let me know if this aligns with your observations or if further testing is needed. I'd be happy to contribute a pull request for this fix if it's helpful! Thanks for your great work on this repository! |
👋 Hello, this issue has been automatically marked as stale because it has not had recent activity. Please note it will be closed if no further activity occurs. |
Please take a look at my comment above, thank you! |
Search before asking
Question
I cloned the repository, installed all requirements, and thereafter ran
python tracking/track.py
and started running into the above error.What's strange is that I'm not even using botsort, though it keeps reverting to that tracker even if I specify a different one, like I did in the screenshot by changing the setting of
--tracking-method
to "bytetrack".OS: Ubuntu 20.04.6, python version 3.11.10, ultralytics version 8.3.32, boxmot installed from master with
pip install -e .
The text was updated successfully, but these errors were encountered: