mirror of
https://github.com/wassname/TTS.git
synced 2026-10-24 12:00:20 +08:00
bug fix
This commit is contained in:
1 parent
6426c7b818
commit
c82a17cfb2
1 file changed
+1
@@ -124,6 +124,7 @@ def train(model, criterion, data_loader, optimizer, epoch):
|
||||
linear_spec_var[:, :, :n_priority_freq],
|
||||
mel_lengths_var)
|
||||
attention_loss = criterion(alignments, M, mel_lengths_var)
|
||||
print(mk)
|
||||
loss = mel_loss + linear_loss + mk * attention_loss
|
||||
|
||||
# backpass and check the grad norm
|
||||
|
||||
Reference in new issue
Block a user