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") - Inference
- Notebooks
- Google Colab
- Kaggle
License: Update link to model license instead of code license.
Browse files
README.md
CHANGED
|
@@ -35,7 +35,7 @@ We provide a model for both text-to-video as well as image+text-to-video usecase
|
|
| 35 |
## Usage
|
| 36 |
|
| 37 |
### Direct use
|
| 38 |
-
You can use the model for purposes under the [license](https://
|
| 39 |
|
| 40 |
### General tips:
|
| 41 |
* The model works on resolutions that are divisible by 32 and number of frames that are divisible by 8 + 1 (e.g. 257). In case the resolution or number of frames are not divisible by 32 or 8 + 1, the input will be padded with -1 and then cropped to the desired resolution and number of frames.
|
|
|
|
| 35 |
## Usage
|
| 36 |
|
| 37 |
### Direct use
|
| 38 |
+
You can use the model for purposes under the [license](https://huggingface.co/Lightricks/LTX-Video/resolve/main/License.txt)
|
| 39 |
|
| 40 |
### General tips:
|
| 41 |
* The model works on resolutions that are divisible by 32 and number of frames that are divisible by 8 + 1 (e.g. 257). In case the resolution or number of frames are not divisible by 32 or 8 + 1, the input will be padded with -1 and then cropped to the desired resolution and number of frames.
|