Skip to content

Commit

Permalink
update loss_g_adv ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
nnaakkaaii committed Jun 30, 2024
1 parent acac082 commit b829786
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hrdae/models/gan_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def train(
loss_g_basic = self.criterion(y, xp, latent=latent)
loss_g_adv = self.criterion_g(y_pred, torch.ones_like(y_pred))

loss_g = loss_g_basic + 0.01 * loss_g_adv
loss_g = loss_g_basic + 0.001 * loss_g_adv
loss_g.backward()
self.optimizer_g.step()

Expand Down

0 comments on commit b829786

Please sign in to comment.