Skip to content

Conversation

glenn-jocher
Copy link
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