mirror of
https://github.com/wassname/TTS.git
synced 2026-09-23 13:00:18 +08:00
handling dates better with the text cleaner
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user