Przeglądaj źródła

chore: speck (#456)

* chore: speck

* chore: speck
Yam(长琴) 1 rok temu
rodzic
commit
a4bacb7b16
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      fish_speech/models/vqgan/modules/firefly.py

+ 2 - 2
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