Skip to content

Commit

Permalink
Revert "Add L2 weight penalty to descriminator"
Browse files Browse the repository at this point in the history
This reverts commit f99b90b.
  • Loading branch information
moto-hellomoto-ai committed May 11, 2019
1 parent b283b20 commit 48b3a7f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions train_vae_gan.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ def _get_trainer(args):
optimizers = {
'encoder': opt(model.vae.encoder.parameters(), lr=args.lr),
'decoder': opt(model.vae.decoder.parameters(), lr=args.lr),
'discriminator': opt(
model.discriminator.parameters(), lr=args.lr, weight_decay=1e-5),
'discriminator': opt(model.discriminator.parameters(), lr=args.lr),
}
trainer = sp_vae_gan.trainer.Trainer(
model, optimizers, train_loader, test_loader, device, args.output_dir,
Expand Down

0 comments on commit 48b3a7f

Please sign in to comment.