Do caching of latents, first frame and audio when caching latents for LTX2

This commit is contained in:
Jaret Burkett
2026-01-14 11:05:23 -07:00
parent 64fe29b182
commit 73dedbf662
6 changed files with 324 additions and 127 deletions

View File

@@ -2550,6 +2550,10 @@ class StableDiffusion:
latents = latents.to(device, dtype=dtype)
return latents
def encode_audio(self, audio_data_list):
# audio_date_list is a list of {"waveform": waveform[C, L], "sample_rate": int(sample_rate)}
raise NotImplementedError("Audio encoding not implemented for this model.")
def decode_latents(
self,