Skip to content

Commit f70cce8

Browse files
authored
Merge pull request #15 from piwell/fix-pretrained-dac-pretransform
fix: call model.quantizer with latents in PretrainedDACPretransform
2 parents cf8f836 + ad281a0 commit f70cce8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stable_audio_tools/models/pretransforms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def encode(self, x):
106106
if self.quantize_on_decode:
107107
output = latents
108108
else:
109-
z, _, latents, _, _ = self.model.quantizer(z, n_quantizers=self.model.n_codebooks)
109+
z, _, _, _, _ = self.model.quantizer(latents, n_quantizers=self.model.n_codebooks)
110110
output = z
111111

112112
if self.scale != 1.0:

0 commit comments

Comments
 (0)