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

Fix __len__ and single_cls #249

Merged
merged 2 commits into from
Jan 11, 2023
Merged

Fix __len__ and single_cls #249

merged 2 commits into from
Jan 11, 2023

Conversation

Laughing-q
Copy link
Member

@Laughing-q Laughing-q commented Jan 11, 2023

@AyushExel @glenn-jocher
related issues: #238, #229

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Updating label handling and dataset length reporting in YOLO data processing.

πŸ“Š Key Changes

  • Ensured that class labels are consistently updated to zero for single-class datasets.
  • Modified dataset length calculation to be based on the number of labels instead of the number of image files.

🎯 Purpose & Impact

  • 🎨 The change to class label assignment ensures data correctness, which is crucial for model training accuracy in single-class scenarios.
  • πŸ“ By deriving the dataset length from labels instead of image files, the code reflects a more accurate dataset size, improving dataset integrity and potential error handling in training loops.
  • πŸš€ These updates might lead to more robust model training performance, as they ensure that the dataset's structure and annotations are correctly interpreted by the training algorithm.

@github-actions
Copy link

github-actions bot commented Jan 11, 2023

CLA Assistant Lite bot All Contributors have signed the CLA. βœ…

@Laughing-q Laughing-q mentioned this pull request Jan 11, 2023
2 tasks
@Laughing-q
Copy link
Member Author

I have read the CLA Document and I sign the CLA

@glenn-jocher glenn-jocher merged commit 53fa0f4 into main Jan 11, 2023
@glenn-jocher glenn-jocher deleted the fix_dataset branch January 11, 2023 10:25
@glenn-jocher glenn-jocher linked an issue Jan 11, 2023 that may be closed by this pull request
1 task
This was referenced Jan 11, 2023
@glenn-jocher glenn-jocher linked an issue Jan 11, 2023 that may be closed by this pull request
2 tasks
0iui0 pushed a commit to 0iui0/ultralytics that referenced this pull request Jan 3, 2024
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.

single class training list index out of range problem
2 participants