update fastapi

This commit is contained in:
lyuxiang.lx
2024-09-05 14:09:40 +08:00
parent 2ce724045b
commit 7555afb90a
6 changed files with 131 additions and 148 deletions

View File

@@ -340,7 +340,7 @@ class HiFTGenerator(nn.Module):
s = self._f02source(f0)
# use cache_source to avoid glitch
if cache_source.shape[2] == 0:
if cache_source.shape[2] != 0:
s[:, :, :cache_source.shape[2]] = cache_source
s_stft_real, s_stft_imag = self._stft(s.squeeze(1))