Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MoonInTheRiver/DiffSinger
/ norm_spec
Method
norm_spec
usr/diff/diffusion.py:320–321 ·
view source on GitHub ↗
(self, x)
Source
from the content-addressed store, hash-verified
318
return
ret
319
320
def
norm_spec(self, x):
321
return
(x - self.spec_min) / (self.spec_max - self.spec_min) * 2 - 1
322
323
def
denorm_spec(self, x):
324
return
(x + 1) / 2 * (self.spec_max - self.spec_min) + self.spec_min
Callers
1
forward
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected