Skip to content

SOTA Open Source TTS

chore: speck (#456)

Yam(长琴)a4bacb7b168a
diff --git a/fish_speech/models/vqgan/modules/firefly.py b/fish_speech/models/vqgan/modules/firefly.py
index 4b34958..4ca0ff5 100644
--- a/fish_speech/models/vqgan/modules/firefly.py
+++ b/fish_speech/models/vqgan/modules/firefly.py
@@ -242,7 +242,7 @@ class HiFiGANGenerator(nn.Module):
if self.use_template:
x = x + self.noise_convs[i](template)
- if self.training and self.checkpointing:
+ if self.training:
x = checkpoint(
self.resblocks[i],
x,
@@ -512,7 +512,7 @@ class FireflyArchitecture(nn.Module):
if x.ndim == 2:
x = x[:, None, :]
- if self.vq is not None:
+ if self.quantizer is not None:
return x, vq_result
return x