Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

linoyts
/
ltx2-audio-video-conditioning

Diffusers
LTX.io
video-generation
audio-to-video
video-conditioning
Model card Files Files and versions
xet
Community
3

Instructions to use linoyts/ltx2-audio-video-conditioning with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Diffusers

    How to use linoyts/ltx2-audio-video-conditioning with Diffusers:

    pip install -U diffusers transformers accelerate
    import torch
    from diffusers import DiffusionPipeline
    
    # switch to "mps" for apple devices
    pipe = DiffusionPipeline.from_pretrained("linoyts/ltx2-audio-video-conditioning", torch_dtype=torch.bfloat16, device_map="cuda")
    
    prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
    image = pipe(prompt).images[0]
  • LTX.io

    How to use linoyts/ltx2-audio-video-conditioning with LTX.io:

    # Install the LTX-2 pipelines
    git clone https://github.com/Lightricks/LTX-2.git
    cd LTX-2
    uv sync --frozen
    # Download the weights from this repo, plus the Gemma text encoder
    hf download linoyts/ltx2-audio-video-conditioning --local-dir models/ltx2-audio-video-conditioning
    hf download google/gemma-3-12b-it-qat-q4_0-unquantized --local-dir models/gemma-3-12b
    # Fast pipeline (distilled model, no distilled LoRA needed)
    uv run python -m ltx_pipelines.distilled \
        --distilled-checkpoint-path models/ltx2-audio-video-conditioning/<distilled-checkpoint>.safetensors \
        --spatial-upsampler-path models/ltx2-audio-video-conditioning/<spatial-upsampler>.safetensors \
        --gemma-root models/gemma-3-12b \
        --prompt "A beautiful sunset over the ocean" \
        --output-path output.mp4
    # For image-to-video, add: --image path/to/image.jpg 0 0.8
    # HQ pipeline (two-stage, higher quality)
    uv run python -m ltx_pipelines.ti2vid_two_stages_hq \
        --checkpoint-path models/ltx2-audio-video-conditioning/<checkpoint>.safetensors \
        --distilled-lora models/ltx2-audio-video-conditioning/<distilled-lora>.safetensors 0.8 \
        --spatial-upsampler-path models/ltx2-audio-video-conditioning/<spatial-upsampler>.safetensors \
        --gemma-root models/gemma-3-12b \
        --prompt "A beautiful sunset over the ocean" \
        --output-path output.mp4
    # For image-to-video, add: --image path/to/image.jpg 0 0.8
  • Notebooks
  • Google Colab
  • Kaggle
ltx2-audio-video-conditioning
63.3 kB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
linoyts's picture
linoyts HF Staff
Update pipeline.py
6cce676 verified 6 months ago
  • .gitattributes
    1.52 kB
    initial commit 6 months ago
  • README.md
    3.24 kB
    Upload README.md with huggingface_hub 6 months ago
  • pipeline.py
    58.5 kB
    Update pipeline.py 6 months ago