handling dates better with the text cleaner

This commit is contained in:
erogol
2020-06-23 13:29:55 +02:00
parent 1324117703
commit ccba431cda
5 changed files with 49 additions and 108 deletions
-3
View File
@@ -44,9 +44,6 @@ class Tacotron2(TacotronAbstract):
proj_speaker_dim = 80 if num_speakers > 1 else 0
# base layers
self.embedding = nn.Embedding(num_chars, 512, padding_idx=0)
std = sqrt(2.0 / (num_chars + 512))
val = sqrt(3.0) * std # uniform bounds for std
self.embedding.weight.data.uniform_(-val, val)
if num_speakers > 1:
self.speaker_embedding = nn.Embedding(num_speakers, 512)
self.speaker_embedding.weight.data.normal_(0, 0.3)