Make the ltx audio vae more native. (#13486)

This commit is contained in:
comfyanonymous
2026-04-21 08:02:42 -07:00
committed by GitHub
parent e75f775ae8
commit ad94d47221
4 changed files with 41 additions and 70 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ def vae_decode_audio(vae, samples, tile=None, overlap=None):
std = torch.std(audio, dim=[1, 2], keepdim=True) * 5.0
std[std < 1.0] = 1.0
audio /= std
vae_sample_rate = getattr(vae, "audio_sample_rate", 44100)
vae_sample_rate = getattr(vae, "audio_sample_rate_output", getattr(vae, "audio_sample_rate", 44100))
return {"waveform": audio, "sample_rate": vae_sample_rate if "sample_rate" not in samples else samples["sample_rate"]}