StableSR icon indicating copy to clipboard operation
StableSR copied to clipboard

Regarding normalization in SPADE

Open stalin18 opened this issue 2 years ago • 0 comments

In the SPADE class definition here https://github.com/IceClear/StableSR/blob/main/ldm/modules/spade.py, there is a parameter free norm in L77:

self.param_free_norm = normalization(norm_nc)

However, the normalization is a GroupNorm with affine=True by default, L214 here https://github.com/IceClear/StableSR/blob/main/ldm/modules/diffusionmodules/util.py

So the norm is not parameter free, is this intentional? Does applying GroupNorm before the SPADE affine transform has significant impact on quality?

stalin18 avatar Jul 31 '23 16:07 stalin18