Skip to content

Conversation

glenn-jocher
Copy link
Member

@glenn-jocher glenn-jocher commented Sep 17, 2022

Prevent multiple downloads on HUB of same dataset

@kalenmike

Signed-off-by: Glenn Jocher [email protected]

🛠️ PR Summary

Made with ❤️ by Ultralytics Actions

🌟 Summary

Enhancement to file download handling in the YOLOv5 codebase.

📊 Key Changes

  • Simplified the logic for determining the destination filename when downloading a file.
  • Modified the control flow to directly use the local file path if the file already exists in the current directory.

🎯 Purpose & Impact

  • Reduction of redundancy: Prevents unnecessary renaming of files, resulting in cleaner, more efficient file handling.
  • Improved code clarity: Makes it easier for developers to understand what happens during the file download process.
  • Enhanced user experience: Users can expect more straightforward and reliable file downloads with fewer errors and better logging.

Prevent multiple downloads on HUB of same dataset

@kalenmike 

Signed-off-by: Glenn Jocher <[email protected]>
@glenn-jocher glenn-jocher self-assigned this Sep 17, 2022
Signed-off-by: Glenn Jocher <[email protected]>
@glenn-jocher glenn-jocher merged commit 4a43080 into master Sep 17, 2022
@glenn-jocher glenn-jocher deleted the update/HUB_downloads branch September 17, 2022 13:19
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