support sovits v3 lora training, 8G GPU memory is enough

support sovits v3 lora training, 8G GPU memory is enough
This commit is contained in:
RVC-Boss
2025-02-23 00:38:47 +08:00
committed by GitHub
parent e937b625e4
commit e6a32e15b0
3 changed files with 387 additions and 15 deletions

View File

@@ -145,7 +145,7 @@ def mel_spectrogram_torch(
return_complex=False,
)
spec = torch.sqrt(spec.pow(2).sum(-1) + 1e-6)
spec = torch.sqrt(spec.pow(2).sum(-1) + 1e-9)
spec = torch.matmul(mel_basis[fmax_dtype_device], spec)
spec = spectral_normalize_torch(spec)