Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MoonInTheRiver/DiffSinger
/ dynamic_range_compression_torch
Function
dynamic_range_compression_torch
modules/hifigan/mel_utils.py:23–24 ·
view source on GitHub ↗
(x, C=1, clip_val=1e-5)
Source
from the content-addressed store, hash-verified
21
22
23
def
dynamic_range_compression_torch(x, C=1, clip_val=1e-5):
24
return
torch.log(torch.clamp(x, min=clip_val) * C)
25
26
27
def
dynamic_range_decompression_torch(x, C=1):
Callers
1
spectral_normalize_torch
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected