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
Copyright for generated content
Can I use the generated videos with this model for commercial purposes? For example, to sell them on stock exchanges, I did not find a clause in the license that would directly indicate the copyright of the generated videos.
See in section 1.12 of the license - “Permitted Purpose” means for academic or research purposes only, and explicitly excludes commercialization such as downstream selling of the Model or Derivatives of the Model.
We plan to enable commercial use with the final version.
Use vs copyright is different things. In all this industry only tools (instruments) sellable, but not the produce.
For copyright on Ai/machine creations you can use statement of United States Federal agency USPTO. (spoiler: no copyright, public domain) You can watch a current court process about that but he will lose (that guy who won Art contest in USA applying Ai image).
Video is not image, in many countries there's federal laws which require obtaining "age rating" for any video publishing.
They will make soon law of mandatory labeling for all Ai content, so instead of (c) you will be forced to put (ai) or something (watermarks, etc) and not doing it will be law violation first. Adding that to USPTO statement - if everyone will see "Ai label" = everyone can copy that, so stock exchanges life is quite short (buyer also must label or else).
See in section 1.12 of the license - “Permitted Purpose” means for academic or research purposes only, and explicitly excludes commercialization such as downstream selling of the Model or Derivatives of the Model.
We plan to enable commercial use with the final version.
It links to the Apache 2.0 license when you click the link on the Huggingface page that says: "You can use the model for purposes under the license", Apache 2.0 is a very open license that allows commercial use. If this is not the license the model is under, can you please update the link to reflect that, as right now you're linking to the Apache 2.0 license on both GitHub and huggingface, and from what's being said here, that's not the license the model is under...