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
Add link to Replicate demo
Browse filesWe've added LTX to Replicate here:
https://replicate.com/fofr/ltx-video
I'd love to move this to your organization, so the URL would be:
https://replicate.com/lightricks/ltx-video – please let me know if you're ok with that.
README.md
CHANGED
|
@@ -45,6 +45,7 @@ You can use the model for purposes under the [license](https://github.com/Lightr
|
|
| 45 |
### Online demo
|
| 46 |
The model is accessible right away via following links:
|
| 47 |
- [HF Playground](https://huggingface.co/spaces/Lightricks/LTX-Video-Playground)
|
|
|
|
| 48 |
- [Fal.ai text-to-video](https://fal.ai/models/fal-ai/ltx-video)
|
| 49 |
- [Fal.ai image-to-video](https://fal.ai/models/fal-ai/ltx-video/image-to-video)
|
| 50 |
|
|
|
|
| 45 |
### Online demo
|
| 46 |
The model is accessible right away via following links:
|
| 47 |
- [HF Playground](https://huggingface.co/spaces/Lightricks/LTX-Video-Playground)
|
| 48 |
+
- [Replicate text-to-video and image-to-video](https://replicate.com/fofr/ltx-video)
|
| 49 |
- [Fal.ai text-to-video](https://fal.ai/models/fal-ai/ltx-video)
|
| 50 |
- [Fal.ai image-to-video](https://fal.ai/models/fal-ai/ltx-video/image-to-video)
|
| 51 |
|