taesungp / swapping-autoencoder-pytorch

Official Implementation of Swapping Autoencoder for Deep Image Manipulation (NeurIPS 2020)
Other
516 stars 84 forks source link

Optimizer question #6

Open kampelmuehler opened 3 years ago

kampelmuehler commented 3 years ago

Hi! Can you please explain why if the training mode is 'generator' the discriminator is trained? Thanks.

https://github.com/taesungp/swapping-autoencoder-pytorch/blob/d67e60f8a702868d08e5b943fc7f46908d78e48b/optimizers/swapping_autoencoder_optimizer.py#L61-L64