Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MoonInTheRiver/DiffSinger
/ norm_spec
Method
norm_spec
usr/diff/shallow_diffusion_tts.py:343–344 ·
view source on GitHub ↗
(self, x)
Source
from the content-addressed store, hash-verified
341
return
ret
342
343
def
norm_spec(self, x):
344
return
(x - self.spec_min) / (self.spec_max - self.spec_min) * 2 - 1
345
346
def
denorm_spec(self, x):
347
return
(x + 1) / 2 * (self.spec_max - self.spec_min) + self.spec_min
Callers
2
forward
Method · 0.95
forward
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected