Getting classes #17218
Replies: 2 comments
-
👋 Hello @blacksmith001, thank you for reaching out to the Ultralytics community 🚀! It sounds like you're encountering an issue with processing classification results. If this is a 🐛 Bug Report, could you please provide a minimum reproducible example that we can use to help debug the problem? This will greatly assist us in identifying and resolving the issue. For issues related specifically to deriving class indices, it might be helpful to ensure your implementation aligns with our Python usage examples. The error If you need further assistance, an Ultralytics engineer will look into this soon. In the meantime, you might find our community a valuable resource. For real-time discussions, consider joining the conversation on Discord 🎧, or explore Discourse and our Subreddit for more in-depth discussions. UpgradeTo ensure you have all the latest features and fixes, upgrade to the newest version of the pip install -U ultralytics EnvironmentsFor guaranteed compatibility and ease of use, you can run YOLO in one of our verified environments, each preinstalled with necessary dependencies: StatusWith all Continuous Integration (CI) tests passing, the green badge indicates that our YOLO Modes and Tasks are verified for correct operation across various platforms. |
Beta Was this translation helpful? Give feedback.
-
@blacksmith001 it seems like the |
Beta Was this translation helpful? Give feedback.
-
I want to process the results of my classification. I was trying to get classes like this:
for result in results:
boxes = result.boxes # Get the boxes for the first result
classes = result.boxes.cls # Get class indices
But then I am getting:
" 'NoneType' object has no attribute 'cls' "
Beta Was this translation helpful? Give feedback.
All reactions