Instructions to use lightx2v/Qwen-Image-2.1-Lightning with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use lightx2v/Qwen-Image-2.1-Lightning with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Qwen/Qwen-Image-2.1", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("lightx2v/Qwen-Image-2.1-Lightning") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Download assets/t2i/04/prompt.txt from lightx2v/Qwen-Image-2.1-Lightning: direct link, hf CLI and curl.
- Browser
- Download file 403 Bytes
-
https://huggingface.co/lightx2v/Qwen-Image-2.1-Lightning/resolve/main/assets/t2i/04/prompt.txt
- Command line
-
hf download hf://lightx2v/Qwen-Image-2.1-Lightning/assets/t2i/04/prompt.txt
-
curl -L -o prompt.txt https://huggingface.co/lightx2v/Qwen-Image-2.1-Lightning/resolve/main/assets/t2i/04/prompt.txt
403 Bytes
| 一只拟人化的小牛,以日常工作的视觉风格展现,照片中没有明确的主体或构图感,还带有轻微的运动模糊。主角占据画面中心位置,是自拍的大头照,脸上带着厌世的神情,它脖子上挂着一个带有自己Q版的工牌。背景是办公场景,旁边的电脑屏幕上是LightX2V studio的页面,营造出一种平凡又独特的氛围。 |