Instructions to use Lightricks/LTX-Video with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Lightricks/LTX-Video 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("Lightricks/LTX-Video", 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
Commit History
-
Delete transformer/transformer_config.json
Verified signaturec8e4cc1
-
Update model names in config (#38)
Verified signature- Update transformer/config.json (c9f81cb99da0cfc6cbf095b6aaf06072bf26da76) - Update vae/config.json (ac4a709464b2442daaa05d7d6c78570cfec65c8e) - Update model_index.json (2758982458bf4c6d19235845ab1b5589c5cd9a09) Co-authored-by: Aryan V S <a-r-r-o-w@users.noreply.huggingface.co>43b830b
-
Create transformer_config.json
Verified signature9217013 -
Diffusers weights test (#32)
Verified signature- Upload folder using huggingface_hub (e8c43b189c072e89cd9b7ec6bade9a8647e5dcbc) Co-authored-by: Aryan V S <a-r-r-o-w@users.noreply.huggingface.co>05be24f