Remove redundant downloads mirror #1461
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR removes the redundant GCP download bucket for weights files. This leaves the GitHub release assets as the sole source of weights, which while less robust is also easier to maintain, as I do not need to update two sets of weights on each release.
I believe the geographic issues we encountered before (i.e. downloading weights in China from Google Drive) should be a non-issue now with the GitHub-hosted weights.
🛠️ PR Summary
Made with ❤️ by Ultralytics Actions
🌟 Summary
Minor code refactor and error handling improvements in the YOLOv5 codebase.
📊 Key Changes
test.py
now refers to the updated module locationutils.plots
rather thanutils.general
.autoanchor.py
is adjusted to import directly from its own module.redundant
is introduced ingoogle_utils.py
to handle a secondary download location in case the primary fails.🎯 Purpose & Impact
autoanchor.py
by using a direct module reference, making it clearer where functions are coming from. 🧭google_utils.py
helps users by providing a fallback download option, ensuring that model weights can still be acquired even if the primary source fails. This enhances the reliability of the download process. 🔄🔗Potential impact includes: