mirror of
https://github.com/wassname/TTS.git
synced 2026-10-27 12:30:27 +08:00
guided attn #2
This commit is contained in:
1 parent
3176b606ef
commit
1bcaf44e48
1 file changed
+1
-1
@@ -126,7 +126,7 @@ def train(model, criterion, data_loader, optimizer, epoch):
|
||||
+ 0.5 * criterion(linear_output[:, :, :n_priority_freq],
|
||||
linear_spec_var[:, :, :n_priority_freq],
|
||||
mel_lengths_var)
|
||||
attention_loss = criterion(, alignments, mel_lengths_var)
|
||||
attention_loss = criterion(M, alignments, mel_lengths_var)
|
||||
loss = mel_loss + linear_loss + 0.2 * attention_loss
|
||||
|
||||
# backpass and check the grad norm
|
||||
|
||||
Reference in new issue
Block a user