Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

Lightricks
/
LTX-Video

Image-to-Video
Diffusers
Safetensors
English
LTXPipeline
ltx-video
Model card Files Files and versions
xet
Community
112

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
LTX-Video / tokenizer
Ctrl+K
Ctrl+K
  • 11 contributors
History: 1 commit
Sapir's picture
Sapir
Diffusers weights test (#32)
05be24f verified over 1 year ago
  • added_tokens.json
    2.59 kB
    Diffusers weights test (#32) over 1 year ago
  • special_tokens_map.json
    2.54 kB
    Diffusers weights test (#32) over 1 year ago
  • spiece.model
    792 kB
    xet
    Diffusers weights test (#32) over 1 year ago
  • tokenizer_config.json
    20.6 kB
    Diffusers weights test (#32) over 1 year ago