(m, mean=0.0, std=0.01)
| 9 | |
| 10 | # https://github.com/yl4579/StyleTTS2/blob/main/Modules/utils.py |
| 11 | def 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 | |
| 16 | def get_padding(kernel_size, dilation=1): |
| 17 | return int((kernel_size*dilation - dilation)/2) |
nothing calls this directly
no outgoing calls
no test coverage detected