mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-02-05 13:09:57 +00:00
Do caching of latents, first frame and audio when caching latents for LTX2
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user