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

Update val.py pad = 0.0 if task == 'speed' else 0.5 #5121

Merged
merged 2 commits into from
Oct 11, 2021

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Oct 11, 2021

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Improved dataloader padding configuration for speed tests in the YOLOv5 validation script.

πŸ“Š Key Changes

  • Added a conditional statement to set padding to 0.0 specifically when the task is 'speed'.
  • Ensured padding remains 0.5 for other tasks ('train', 'val', 'test') in the dataloader creation.

🎯 Purpose & Impact

  • 🎯 Purpose: The change is designed to optimize the dataloader configuration for speed testing by reducing unnecessary padding that can affect performance measurements.
  • πŸ’‘ Impact: This update will lead to more accurate speed benchmarks for users testing their YOLOv5 models, as it minimizes the computational load by eliminating excess padding during the speed test task.

Model developers and users performing speed tests can expect more streamlined and precise performance metrics, aiding in the fine-tuning and evaluation of models.

@glenn-jocher glenn-jocher merged commit 7d37b3c into master Oct 11, 2021
@glenn-jocher glenn-jocher deleted the glenn-jocher-patch-1 branch October 11, 2021 06:20
@glenn-jocher glenn-jocher changed the title Update val.py pad = 0.0 if task == speed else 0.5 Update val.py pad = 0.0 if task == 'speed' else 0.5 Oct 11, 2021
BjarneKuehl pushed a commit to fhkiel-mlaip/yolov5 that referenced this pull request Aug 26, 2022
* Update val.py `pad = 0.0 if task == speed else 0.5`

* Cleanup
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.

1 participant