mirror of https://github.com/coqui-ai/TTS.git
guided attn #11
This commit is contained in:
parent
3161a16101
commit
a42669327e
2
train.py
2
train.py
|
@ -128,8 +128,6 @@ def train(model, criterion, data_loader, optimizer, epoch):
|
||||||
+ 0.5 * criterion(linear_output[:, :, :n_priority_freq],
|
+ 0.5 * criterion(linear_output[:, :, :n_priority_freq],
|
||||||
linear_spec_var[:, :, :n_priority_freq],
|
linear_spec_var[:, :, :n_priority_freq],
|
||||||
mel_lengths_var)
|
mel_lengths_var)
|
||||||
print(M.shape)
|
|
||||||
print(alignments.shape)
|
|
||||||
attention_loss = criterion(alignments, M, mel_lengths_var)
|
attention_loss = criterion(alignments, M, mel_lengths_var)
|
||||||
loss = mel_loss + linear_loss + 0.2 * attention_loss
|
loss = mel_loss + linear_loss + 0.2 * attention_loss
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue