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

Method _f02uv

modules/parallel_wavegan/models/source.py:38–42  ·  view source on GitHub ↗
(self, f0)

Source from the content-addressed store, hash-verified

36 self.flag_for_pulse = flag_for_pulse
37
38 def _f02uv(self, f0):
39 # generate uv signal
40 uv = torch.ones_like(f0)
41 uv = uv * (f0 > self.voiced_threshold)
42 return uv
43
44 def _f02sine(self, f0_values):
45 """ f0_values: (batchsize, length, dim)

Callers 2

_f02sineMethod · 0.95
forwardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected