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

Is there any convenient way to do spectrum normalization? (Sonnet version: 2.0.0) #193

Open
isletennos opened this issue Nov 12, 2020 · 3 comments

Comments

@isletennos
Copy link

Dear Deepminder:

For generative adversarial network, there introduces a normalization called spectrum normalization (ref: https://arxiv.org/abs/1802.05957).

However I find according to the knowledge of me, it is a little hard for me to incorporate it into Sonnet.

This is because spectral normalization changes the weights. But I checked snt.Conv2D, seems the weight is intractable due to internal management.

Old version sonnet seems to have a solution,
(#99)
but I can't find "custom_getter" and other Solutions in Sonnet version: 2.0.0.

So could I be given some suggestion regarding such a situation?
Thanks a lot.

@chr1sj0nes
Copy link
Member

Hi @isletennos,

I think snt.custom_variable_getter is what you're looking for.

@isletennos
Copy link
Author

Thanks for getting back to me without delay!

I couldn't find in the Sonnet Documentation how to use this modules.
What should I do if I only get the w in snt.conv2D and process it like a SN?

@o-90
Copy link

o-90 commented Dec 20, 2021

There is an implementation of SpectralNormalizer in the little_gan_on_mnist notebook under examples/

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

No branches or pull requests

3 participants