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

Plot labels.png histogram colors #3192

Merged
merged 1 commit into from
May 17, 2021
Merged

Plot labels.png histogram colors #3192

merged 1 commit into from
May 17, 2021

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented May 17, 2021

Solution for #1879 (comment)

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Enhanced the label histogram color-coding in the label plotting utility.

πŸ“Š Key Changes

  • The histogram ax[0] in plot_labels will now color code each class bin.
  • A list comprehension is added to set the color for each patch in the histogram based on class indices.

🎯 Purpose & Impact

  • Purpose: To provide a visual distinction between different classes in the histogram, making it more readable and informative.
  • Impact: Users will benefit from a clearer visual representation of their data classes, improving their ability to interpret the distribution of classes within datasets. πŸŽ¨πŸ“ˆ

@glenn-jocher glenn-jocher self-assigned this May 17, 2021
@glenn-jocher glenn-jocher merged commit ae53f50 into master May 17, 2021
@glenn-jocher glenn-jocher deleted the glenn-jocher-patch-5 branch May 17, 2021 09:44
@glenn-jocher
Copy link
Member Author

glenn-jocher commented May 17, 2021

Updated labels.png with histogram bars now colored (for VOC):
labels

Lechtr pushed a commit to Lechtr/yolov5 that referenced this pull request Jul 20, 2021
BjarneKuehl pushed a commit to fhkiel-mlaip/yolov5 that referenced this pull request Aug 26, 2022
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

Successfully merging this pull request may close these issues.

None yet

1 participant