Skip to content

Commit

Permalink
Update train_ms.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Stardust-minus authored Jan 29, 2024
1 parent 0dcb83f commit 0a94c48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train_ms.py
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ def train_and_evaluate(
scaler.scale(loss_gen_all).backward()
scaler.unscale_(optim_g)
#if getattr(hps.train, "bf16_run", False):
torch.nn.utils.clip_grad_norm_(parameters=net_g.parameters(), max_norm=500)
torch.nn.utils.clip_grad_norm_(parameters=net_g.parameters(), max_norm=200)
grad_norm_g = commons.clip_grad_value_(net_g.parameters(), None)
scaler.step(optim_g)
scaler.update()
Expand Down

0 comments on commit 0a94c48

Please sign in to comment.