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

Add support for different normalization layers #7377

Merged
merged 3 commits into from
Apr 11, 2022

Conversation

vardanagarwal
Copy link
Contributor

@vardanagarwal vardanagarwal commented Apr 11, 2022

Adding normalization layers like LazyBatchNorm, GroupNorm, InstanceNorm, LayerNorm, etc. to the optimizer group training strategy.

#7375

πŸ› οΈ PR Summary

Made with ❀️ by Ultralytics Actions

🌟 Summary

Enhanced normalization layers handling during optimization in the YOLOv5 training script.

πŸ“Š Key Changes

  • Broadened normalization layers recognition: The code now identifies a range of normalization layers, not just BatchNorm2d, ensuring proper optimizer configuration.

🎯 Purpose & Impact

  • Improved flexibility: This change allows YOLOv5 to work with more types of normalization layers, which can be beneficial for experimenting with novel model architectures.
  • Optimization accuracy: By correctly identifying which model weights should not have weight decay applied, the training process is more robust, potentially improving model performance.

This update is a technical improvement that can have positive effects on training custom models with different normalization layers, helping maintain YOLOv5's adaptability. πŸ’‘πŸ› 

@glenn-jocher glenn-jocher changed the title Add support for different normalization layers. Add support for different normalization layers Apr 11, 2022
@glenn-jocher glenn-jocher merged commit fa569cd into ultralytics:master Apr 11, 2022
@glenn-jocher
Copy link
Member

@vardanagarwal PR is merged. Thank you for your contributions to YOLOv5 πŸš€ and Vision AI ⭐

BjarneKuehl pushed a commit to fhkiel-mlaip/yolov5 that referenced this pull request Aug 26, 2022
* Add support for different normalization layers.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Cleanup

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants