Skip to content

Adding own normalization layer #1062

Answered by rwightman
MichaelMonashev asked this question in Q&A
Discussion options

You must be logged in to vote

@MichaelMonashev I've been working w/ custom norm layers quite a bit lately, there's a branch with some fairly noteworthy changes to make handling more uniform across a number of common models, it's done via combined norm + act layers though, since many of the norm layers I was looking at also combine the non-linearity. A number of the models on this branch now support use of custom norm + act layers.. see the factory below

https://github.com/rwightman/pytorch-image-models/blob/norm_norm_norm/timm/models/layers/create_norm_act.py

And some examples of new model defs that have been updated (or already) use norm-act layers and have new non-BN configs:

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MichaelMonashev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants