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

Function init_weights

kokoro/istftnet.py:11–14  ·  view source on GitHub ↗
(m, mean=0.0, std=0.01)

Source from the content-addressed store, hash-verified

9
10# https://github.com/yl4579/StyleTTS2/blob/main/Modules/utils.py
11def init_weights(m, mean=0.0, std=0.01):
12 classname = m.__class__.__name__
13 if classname.find("Conv") != -1:
14 m.weight.data.normal_(mean, std)
15
16def get_padding(kernel_size, dilation=1):
17 return int((kernel_size*dilation - dilation)/2)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected