mirror of https://github.com/coqui-ai/TTS.git
Configurable alignment method
parent
d8c460442a
commit
0f933106ca
|
@ -105,7 +105,7 @@ class AttentionRNN(nn.Module):
|
||||||
# Alignment
|
# Alignment
|
||||||
# (batch, max_time)
|
# (batch, max_time)
|
||||||
# e_{ij} = a(s_{i-1}, h_j)
|
# e_{ij} = a(s_{i-1}, h_j)
|
||||||
if attnetion_vec is None:
|
if self.align_model is 'b':
|
||||||
alignment = self.alignment_model(annotations, rnn_output)
|
alignment = self.alignment_model(annotations, rnn_output)
|
||||||
else:
|
else:
|
||||||
alignment = self.alignment_model(annotations, rnn_output, attention_vec)
|
alignment = self.alignment_model(annotations, rnn_output, attention_vec)
|
||||||
|
|
Loading…
Reference in New Issue