Skip to content

Commit f5ce1b6

Browse files
fix
1 parent 3b56bb0 commit f5ce1b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

naturalspeech2_pytorch/naturalspeech2_pytorch.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,9 +1494,9 @@ def forward(
14941494
align_loss = self.aligner_loss(aln_log , text_lens, mel_lens)
14951495
# weigh the losses
14961496

1497-
aux_loss = (duration_loss * self.duration_loss_weight)
1498-
+ (pitch_loss * self.pitch_loss_weight)
1499-
+ (align_loss * )
1497+
aux_loss = (duration_loss * self.duration_loss_weight) \
1498+
+ (pitch_loss * self.pitch_loss_weight) \
1499+
+ (align_loss * self.aligner_loss_weight)
15001500

15011501
# automatically encode raw audio to residual vq with codec
15021502

0 commit comments

Comments
 (0)