Skip to content

Commit

Permalink
chore: speck (#456)
Browse files Browse the repository at this point in the history
* chore: speck

* chore: speck
  • Loading branch information
hscspring authored Aug 8, 2024
1 parent de565f7 commit a4bacb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fish_speech/models/vqgan/modules/firefly.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def forward(self, x, template=None):
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,
Expand Down Expand Up @@ -512,7 +512,7 @@ def forward(self, x: torch.Tensor, template=None, mask=None) -> torch.Tensor:
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
Expand Down

0 comments on commit a4bacb7

Please sign in to comment.