Image-to-Video
Diffusers
Safetensors
LTX2Pipeline
text-to-video
video-to-video
image-text-to-video
audio-to-video
text-to-audio
video-to-audio
audio-to-audio
text-to-audio-video
image-to-audio-video
image-text-to-audio-video
ltx-2
ltx-2-3
ltx-video
ltxv
lightricks
Instructions to use diffusers/LTX-2.3-Diffusers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use diffusers/LTX-2.3-Diffusers with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image, export_to_video # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("diffusers/LTX-2.3-Diffusers", dtype=torch.bfloat16, device_map="cuda") pipe.to("cuda") prompt = "A man with short gray hair plays a red electric guitar." image = load_image( "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png" ) output = pipe(image=image, prompt=prompt).frames[0] export_to_video(output, "output.mp4") - Notebooks
- Google Colab
- Kaggle
| { | |
| "_class_name": "LTX2VideoTransformer3DModel", | |
| "_diffusers_version": "0.37.0.dev0", | |
| "activation_fn": "gelu-approximate", | |
| "attention_bias": true, | |
| "attention_head_dim": 128, | |
| "attention_out_bias": true, | |
| "audio_attention_head_dim": 64, | |
| "audio_cross_attention_dim": 2048, | |
| "audio_cross_attn_mod": true, | |
| "audio_gated_attn": true, | |
| "audio_hop_length": 160, | |
| "audio_in_channels": 128, | |
| "audio_num_attention_heads": 32, | |
| "audio_out_channels": 128, | |
| "audio_patch_size": 1, | |
| "audio_patch_size_t": 1, | |
| "audio_pos_embed_max_pos": 20, | |
| "audio_sampling_rate": 16000, | |
| "audio_scale_factor": 4, | |
| "base_height": 2048, | |
| "base_width": 2048, | |
| "caption_channels": 3840, | |
| "causal_offset": 1, | |
| "cross_attention_dim": 4096, | |
| "cross_attn_mod": true, | |
| "cross_attn_timestep_scale_multiplier": 1000, | |
| "gated_attn": true, | |
| "in_channels": 128, | |
| "norm_elementwise_affine": false, | |
| "norm_eps": 1e-06, | |
| "num_attention_heads": 32, | |
| "num_layers": 48, | |
| "out_channels": 128, | |
| "patch_size": 1, | |
| "patch_size_t": 1, | |
| "perturbed_attn": true, | |
| "pos_embed_max_pos": 20, | |
| "qk_norm": "rms_norm_across_heads", | |
| "rope_double_precision": true, | |
| "rope_theta": 10000.0, | |
| "rope_type": "split", | |
| "timestep_scale_multiplier": 1000, | |
| "use_prompt_embeddings": false, | |
| "vae_scale_factors": [ | |
| 8, | |
| 32, | |
| 32 | |
| ] | |
| } | |