Add max_decoder_steps, streamline Dockerfile

This commit is contained in:
Brandon Thomas
2022-11-17 21:38:14 -05:00
parent 5163650b86
commit c7a880924f
5 changed files with 144 additions and 15 deletions
+3
View File
@@ -469,6 +469,9 @@ class Tacotron2(nn.Module):
self.encoder = Encoder(hparams)
self.decoder = Decoder(hparams)
self.postnet = Postnet(hparams)
def fakeyou_set_max_decoder_steps(self, max_decoder_steps):
self.decoder.max_decoder_steps = max_decoder_steps
def parse_batch(self, batch):
text_padded, input_lengths, mel_padded, gate_padded, \