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
Identify trainable layers #30
Comments
Hi, All layers defined in the generator's init function are trainable: Lines 7 to 23 in 8fc1cf0
Looking at the StyleGAN-NADA page (https://stylegan-nada.github.io/), I see that you need a def requires_grad(model, flag=True):
for p in model.parameters():
p.requires_grad = flag
G_frozen = model.netG # or model.netEMA
requires_grad(G_frozen, False) You can also use this approach to freeze individual layers. This would allow you to train only early layers, late layers, or only the SPADE normalization layers, etc. |
Hi I am trying to apply StyleGAN-NADA Clip method onto OASIS as suggested by the author, can you help me to identify which layer of OASIS is trainable?
The text was updated successfully, but these errors were encountered: