MCPcopy Create free account
hub / github.com/MeiGen-AI/MultiTalk / __init__

Method __init__

kokoro/modules.py:138–146  ·  view source on GitHub ↗
(self, sty_dim, d_model, nlayers, dropout=0.1)

Source from the content-addressed store, hash-verified

136
137class DurationEncoder(nn.Module):
138 def __init__(self, sty_dim, d_model, nlayers, dropout=0.1):
139 super().__init__()
140 self.lstms = nn.ModuleList()
141 for _ in range(nlayers):
142 self.lstms.append(nn.LSTM(d_model + sty_dim, d_model // 2, num_layers=1, batch_first=True, bidirectional=True, dropout=dropout))
143 self.lstms.append(AdaLayerNorm(sty_dim, d_model))
144 self.dropout = dropout
145 self.d_model = d_model
146 self.sty_dim = sty_dim
147
148 def forward(self, x, style, text_lengths, m):
149 masks = m

Callers

nothing calls this directly

Calls 2

AdaLayerNormClass · 0.85
__init__Method · 0.45

Tested by

no test coverage detected