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

Ignore blank lines in *.txt labels #3366

Merged
merged 1 commit into from
May 27, 2021
Merged

Conversation

glenn-jocher
Copy link
Member

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

Fix for #958 (comment)

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Enhanced label parsing in dataset utility to ignore empty lines.

πŸ“Š Key Changes

  • Updated label reading logic to skip empty lines when parsing label files.

🎯 Purpose & Impact

  • Purpose: Prevents potential errors or misinterpretations of label files with unintended empty lines.
  • Impact: Improves the robustness of dataset preparation by ensuring that label parsing is more fault-tolerant, leading to a smoother training process for YOLOv5 models. Users can expect more reliable data preprocessing, especially in cases where label files might have contained superfluous empty lines. πŸ› οΈ

@glenn-jocher glenn-jocher self-assigned this May 27, 2021
@glenn-jocher glenn-jocher requested review from a team and removed request for a team May 27, 2021 12:28
@glenn-jocher glenn-jocher linked an issue May 27, 2021 that may be closed by this pull request
@glenn-jocher glenn-jocher merged commit 4d4a2b0 into master May 27, 2021
@glenn-jocher glenn-jocher deleted the glenn-jocher-patch-2 branch May 27, 2021 12:31
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.

KeyError occur when start training
1 participant