MCPcopy Create free account
hub / github.com/MoonInTheRiver/DiffSinger / run_decoder

Method run_decoder

modules/fastspeech/fs2.py:233–237  ·  view source on GitHub ↗
(self, decoder_inp, tgt_nonpadding, ret, infer, **kwargs)

Source from the content-addressed store, hash-verified

231 return pitch_embed
232
233 def run_decoder(self, decoder_inp, tgt_nonpadding, ret, infer, **kwargs):
234 x = decoder_inp # [B, T, H]
235 x = self.decoder(x)
236 x = self.mel_out(x)
237 return x * tgt_nonpadding
238
239 def cwt2f0_norm(self, cwt_spec, mean, std, mel2ph):
240 f0 = cwt2f0(cwt_spec, mean, std, hparams['cwt_scales'])

Callers 1

forwardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected