We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
People usually use multiple module & optimizer on GAN model, for example:
moduleA = Generator() moduleB = Discriminator() moduleC = Predictor()
so the corresponding optimizers are:
optG = optim.Adam(Generator.parameters(), ...) optD = optim.Adam(Discriminator.parameters(), ...) optP = optim.Adam(Predictor.parameters(), ...)
For single module, the example show:
model = Model() optimizer = optim.Adam([ {'params': model.parameters()}, {'params': awl.parameters(), 'weight_decay': 0} ])
For the multiple modules above, how to set the parameters in optimizers? I can guess two options but they might be wrong: option1:
optG = optim.Adam(list(Generator.parameters()), ...) optD = optim.Adam(list(Discriminator.parameters()), ...) optP = optim.Adam(list(Predictor.parameters())+list(awl.parameters()), ...)
option2:
optG = optim.Adam(list(Generator.parameters())+list(awl.parameters()), ...) optD = optim.Adam(list(Discriminator.parameters())+list(awl.parameters()), ...) optP = optim.Adam(list(Predictor.parameters())+list(awl.parameters()), ...)
@Mikoto10032 Which one is correct?
Thanks!
The text was updated successfully, but these errors were encountered:
Same question. Have you solved it yet? Thank you
Sorry, something went wrong.
No, I'm still thinking about it.
No branches or pull requests
People usually use multiple module & optimizer on GAN model, for example:
so the corresponding optimizers are:
For single module, the example show:
For the multiple modules above, how to set the parameters in optimizers? I can guess two options but they might be wrong:
option1:
option2:
@Mikoto10032
Which one is correct?
Thanks!
The text was updated successfully, but these errors were encountered: