GAN training with multiple optimizers: do I need to call generator.train() and generator.eval()? #8994
Unanswered
silviu-oprea
asked this question in
code help: CV
Replies: 1 comment 1 reply
-
Lightning does not know if you are running a GAN nor does it know which part of the model is a generator and which one is a discriminator. When execution enters |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Looking at the basic GAN example here: What if the generator or discriminator has dropout and batchnorm layers?
training_step
, underif optimizer_idx == 1
, does not call generator.eval().Beta Was this translation helpful? Give feedback.
All reactions