ComfyUI/comfy/ldm/lightricks
jjdejong ddac8fd48e fix: cast mel_spec to waveform dtype in AudioVAE encode to support --bf16-vae
waveform_to_mel() performs mel filterbank computation in float32
regardless of input dtype, discarding the bfloat16 cast applied by
the VAE encode path in sd.py. The resulting float32 mel spectrogram
is then passed to the bfloat16 autoencoder encoder, causing a
RuntimeError at the first conv layer when --bf16-vae is active.

Fix by casting mel_spec to waveform.dtype (already set to vae_dtype
by the caller) before passing to self.autoencoder.encode(). This is
a no-op when --bf16-vae is not used.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-13 22:56:59 +02:00
..
vae fix: cast mel_spec to waveform dtype in AudioVAE encode to support --bf16-vae 2026-05-13 22:56:59 +02:00
vocoders LTX audio vae novram fixes. (#12796) 2026-03-05 16:31:28 -05:00
av_model.py Support the LTXAV 2.3 model. (#12773) 2026-03-04 20:06:20 -05:00
embeddings_connector.py Support the LTXAV 2.3 model. (#12773) 2026-03-04 20:06:20 -05:00
latent_upsampler.py Support the LTXV 2 model. (#11632) 2026-01-05 01:58:59 -05:00
model.py Support the LTXAV 2.3 model. (#12773) 2026-03-04 20:06:20 -05:00
symmetric_patchifier.py Support the LTXV 2 model. (#11632) 2026-01-05 01:58:59 -05:00