import torch
from diffusers import DiffusionPipeline
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("smthem/ltx-2-19b-dev-diffusers-test", dtype=torch.bfloat16, device_map="cuda")
prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]Example
Use newest diffuser ltx-2 PR,convert ltx2 to diffusers models.
A test models ,need newest pipelines
need this PR https://github.com/huggingface/diffusers/pull/12915
python scripts/ltx2_test_full_pipeline.py \
--model_id Lightricks/LTX-2 \
--revision refs/pr/3 \
--cpu_offload
python scripts/ltx2_test_full_pipeline_i2v.py \
--model_id /path/to/diffusers/model/ \
--image_path https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/astronaut.jpg \
--cpu_offload
- Downloads last month
- 5
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
