Add files via upload

This commit is contained in:
RVC-Boss
2023-05-14 15:06:50 +08:00
committed by GitHub
parent 3b5a2298d7
commit 404ce9338f
3 changed files with 20 additions and 8 deletions

View File

@@ -51,9 +51,9 @@ def spectrogram_torch(y, n_fft, sampling_rate, hop_size, win_size, center=False)
:: (B, Freq, Frame) - Linear-frequency Linear-amplitude spectrogram
"""
# Validation
if torch.min(y) < -1.0:
if torch.min(y) < -1.07:
print("min value is ", torch.min(y))
if torch.max(y) > 1.0:
if torch.max(y) > 1.07:
print("max value is ", torch.max(y))
# Window - Cache if needed