mirror of
https://github.com/ostris/ai-toolkit.git
synced 2026-01-26 16:39:47 +00:00
Fix issue with ltx cached latents if there is no audio.
This commit is contained in:
@@ -838,7 +838,7 @@ class LTX2Model(BaseModel):
|
||||
batch_size,
|
||||
num_channels_latents=num_channels_latents_audio,
|
||||
num_mel_bins=num_mel_bins,
|
||||
num_frames=batch.tensor.shape[1],
|
||||
num_frames=batch.dataset_config.num_frames,
|
||||
frame_rate=frame_rate,
|
||||
sampling_rate=self.pipeline.audio_sampling_rate,
|
||||
hop_length=self.pipeline.audio_hop_length,
|
||||
|
||||
Reference in New Issue
Block a user