b71f31eae4f74b6a426861f8085d73f2eb1c063a,models/tacotron2.py,Tacotron2,forward,#Tacotron2#Any#Any#Any#Any#Any#,78

Before Change


            self.compute_speaker_embedding(speaker_ids)
        if self.num_speakers > 1:
            // B x T_in x embed_dim + speaker_embed_dim
            encoder_outputs = self._add_speaker_embedding(encoder_outputs,
                                                          self.speaker_embeddings)
        encoder_outputs = encoder_outputs * input_mask.unsqueeze(2).expand_as(encoder_outputs)
        // global style token
        if self.gst:
            // B x gst_dim

After Change


            else:
                encoder_outputs = torch.cat([encoder_outputs, embedded_speakers], dim=-1)
        else:
            if hasattr(self, "gst"):
                // B x gst_dim
                encoder_outputs, embedded_gst = self.compute_gst(encoder_outputs, mel_specs)
                encoder_outputs = torch.cat([encoder_outputs, embedded_gst], dim=-1)

        encoder_outputs = encoder_outputs * input_mask.unsqueeze(2).expand_as(encoder_outputs)

        // B x mel_dim x T_out -- B x T_out//r x T_in -- B x T_out//r
        decoder_outputs, alignments, stop_tokens = self.decoder(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: mozilla/TTS
Commit Name: b71f31eae4f74b6a426861f8085d73f2eb1c063a
Time: 2020-07-14
Author: alexx.korolev@gmail.com
File Name: models/tacotron2.py
Class Name: Tacotron2
Method Name: forward


Project Name: mozilla/TTS
Commit Name: b96e74dd4906df02a4fba23519eb947491f96716
Time: 2020-08-05
Author: erogol@hotmail.com
File Name: mozilla_voice_tts/tts/models/tacotron2.py
Class Name: Tacotron2
Method Name: forward


Project Name: mozilla/TTS
Commit Name: a1322530dfd63ec2b9433699b36a647774f9aaa5
Time: 2019-09-12
Author: egolge@mozilla.com
File Name: models/tacotron.py
Class Name: Tacotron
Method Name: inference


Project Name: mozilla/TTS
Commit Name: a1322530dfd63ec2b9433699b36a647774f9aaa5
Time: 2019-09-12
Author: egolge@mozilla.com
File Name: models/tacotron.py
Class Name: Tacotron
Method Name: forward