Instructions to use smthem/ltx-2-19b-dev-diffusers-test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use smthem/ltx-2-19b-dev-diffusers-test with Diffusers:
pip install -U diffusers transformers accelerate
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] - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -4,4 +4,21 @@ license: mit
|
|
| 4 |
|
| 5 |
Use newest diffuser ltx-2 PR,convert ltx2 to diffusers models.
|
| 6 |
|
| 7 |
-
A test models ,need newest pipelines
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
Use newest diffuser ltx-2 PR,convert ltx2 to diffusers models.
|
| 6 |
|
| 7 |
+
A test models ,need newest pipelines
|
| 8 |
+
|
| 9 |
+
need this PR [https://github.com/huggingface/diffusers/pull/12915 ](https://github.com/huggingface/diffusers/pull/12915)
|
| 10 |
+
|
| 11 |
+
```
|
| 12 |
+
python scripts/ltx2_test_full_pipeline.py \
|
| 13 |
+
--model_id Lightricks/LTX-2 \
|
| 14 |
+
--revision refs/pr/3 \
|
| 15 |
+
--cpu_offload
|
| 16 |
+
```
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
```
|
| 20 |
+
python scripts/ltx2_test_full_pipeline_i2v.py \
|
| 21 |
+
--model_id /path/to/diffusers/model/ \
|
| 22 |
+
--image_path https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/astronaut.jpg \
|
| 23 |
+
--cpu_offload
|
| 24 |
+
```
|