Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
nocotan committed Dec 29, 2020
1 parent 3870296 commit 3a30234
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/wgan_gp.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ def configure_optimizers(self):
opt_g = torch.optim.Adam(self.generator.parameters(), lr=lr, betas=(b1, b2))
opt_d = torch.optim.Adam(self.discriminator.parameters(), lr=lr, betas=(b1, b2))
return (
{'optimizer': opt_g, 'frequency': n_critic},
{'optimizer': opt_d, 'frequency': 1}
{'optimizer': opt_g, 'frequency': 1},
{'optimizer': opt_d, 'frequency': n_critic}
)

def train_dataloader(self):
Expand Down

0 comments on commit 3a30234

Please sign in to comment.