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

Method cwt2f0_norm

modules/fastspeech/fs2.py:239–244  ·  view source on GitHub ↗
(self, cwt_spec, mean, std, mel2ph)

Source from the content-addressed store, hash-verified

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'])
241 f0 = torch.cat(
242 [f0] + [f0[:, -1:]] * (mel2ph.shape[1] - f0.shape[1]), 1)
243 f0_norm = norm_f0(f0, None, hparams)
244 return f0_norm
245
246 def out2mel(self, out):
247 return out

Callers 3

add_pitchMethod · 0.95
run_modelMethod · 0.45
add_pitch_lossMethod · 0.45

Calls 2

cwt2f0Function · 0.90
norm_f0Function · 0.90

Tested by

no test coverage detected