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

Remove opt from create_dataloader()` #3552

Merged
merged 1 commit into from
Jun 9, 2021
Merged

Remove opt from create_dataloader()` #3552

merged 1 commit into from
Jun 9, 2021

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Jun 9, 2021

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Enhancing support for single-class datasets in YOLOv5 training and testing.

πŸ“Š Key Changes

  • single_cls option now consistently passed directly as a parameter to various functions instead of being extracted from opt.
  • The create_dataloader function signature is updated to receive single_cls as a parameter.

🎯 Purpose & Impact

  • The refactor improves code clarity and maintainability by using the single_cls parameter explicitly rather than indirectly through opt.
  • This change should not affect multi-class dataset handling but ensures single-class datasets are handled correctly across different parts of YOLOv5, providing more robust support for users working with such datasets.

@glenn-jocher glenn-jocher merged commit 958ab92 into master Jun 9, 2021
@glenn-jocher glenn-jocher deleted the opt_update1 branch June 9, 2021 11:14
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