Skip to content

Fix detect.py --update list bug#8783

Merged
glenn-jocher merged 1 commit intomasterfrom
glenn-jocher-patch-1
Jul 29, 2022
Merged

Fix detect.py --update list bug#8783
glenn-jocher merged 1 commit intomasterfrom
glenn-jocher-patch-1

Conversation

@glenn-jocher
Copy link
Copy Markdown
Member

@glenn-jocher glenn-jocher commented Jul 29, 2022

Resolves #8776

🛠️ PR Summary

Made with ❤️ by Ultralytics Actions

🌟 Summary

Improved optimizer stripping for updating models in detect.py.

📊 Key Changes

  • Modified strip_optimizer function call to only pass the first element of the weights list.

🎯 Purpose & Impact

  • 🛠️ Purpose: Fixes an issue with the model update process, specifically addressing a SourceChangeWarning.
  • 🚀 Impact: Ensures that the model update function works correctly, especially important for users who frequently update their models to improve performance or incorporate the latest features. This should lead to a smoother user experience with fewer error messages related to model updates. 📈

@glenn-jocher glenn-jocher self-assigned this Jul 29, 2022
@glenn-jocher glenn-jocher merged commit 52d3a9a into master Jul 29, 2022
@glenn-jocher glenn-jocher deleted the glenn-jocher-patch-1 branch July 29, 2022 15:07
ctjanuhowski pushed a commit to ctjanuhowski/yolov5 that referenced this pull request Sep 8, 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.

when execute detect.py --update with weight(list) error

1 participant