mirror of https://github.com/coqui-ai/TTS.git
setup_model update following TacotronAbstract
This commit is contained in:
parent
4aaf57b50b
commit
01339e94a5
|
@ -161,13 +161,16 @@ def setup_model(num_chars, num_speakers, c):
|
||||||
location_attn=c.location_attn,
|
location_attn=c.location_attn,
|
||||||
attn_K=c.attention_heads,
|
attn_K=c.attention_heads,
|
||||||
separate_stopnet=c.separate_stopnet,
|
separate_stopnet=c.separate_stopnet,
|
||||||
bidirectional_decoder=c.bidirectional_decoder)
|
bidirectional_decoder=c.bidirectional_decoder,
|
||||||
|
double_decoder_consistency=c.double_decoder_consistency,
|
||||||
|
ddc_r=c.ddc_r)
|
||||||
elif c.model.lower() == "tacotron2":
|
elif c.model.lower() == "tacotron2":
|
||||||
model = MyModel(num_chars=num_chars,
|
model = MyModel(num_chars=num_chars,
|
||||||
num_speakers=num_speakers,
|
num_speakers=num_speakers,
|
||||||
r=c.r,
|
r=c.r,
|
||||||
postnet_output_dim=c.audio['num_mels'],
|
postnet_output_dim=c.audio['num_mels'],
|
||||||
decoder_output_dim=c.audio['num_mels'],
|
decoder_output_dim=c.audio['num_mels'],
|
||||||
|
gst=c.use_gst,
|
||||||
attn_type=c.attention_type,
|
attn_type=c.attention_type,
|
||||||
attn_win=c.windowing,
|
attn_win=c.windowing,
|
||||||
attn_norm=c.attention_norm,
|
attn_norm=c.attention_norm,
|
||||||
|
@ -179,7 +182,9 @@ def setup_model(num_chars, num_speakers, c):
|
||||||
location_attn=c.location_attn,
|
location_attn=c.location_attn,
|
||||||
attn_K=c.attention_heads,
|
attn_K=c.attention_heads,
|
||||||
separate_stopnet=c.separate_stopnet,
|
separate_stopnet=c.separate_stopnet,
|
||||||
bidirectional_decoder=c.bidirectional_decoder)
|
bidirectional_decoder=c.bidirectional_decoder,
|
||||||
|
double_decoder_consistency=c.double_decoder_consistency,
|
||||||
|
ddc_r=c.ddc_r)
|
||||||
return model
|
return model
|
||||||
|
|
||||||
class KeepAverage():
|
class KeepAverage():
|
||||||
|
|
Loading…
Reference in New Issue