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/edit/08/prompt.txt from lightx2v/Qwen-Image-2.1-Lightning: direct link, hf CLI and curl.
- Browser
- Download file 583 Bytes
-
https://huggingface.co/lightx2v/Qwen-Image-2.1-Lightning/resolve/main/assets/edit/08/prompt.txt
- Command line
-
hf download hf://lightx2v/Qwen-Image-2.1-Lightning/assets/edit/08/prompt.txt
-
curl -L -o prompt.txt https://huggingface.co/lightx2v/Qwen-Image-2.1-Lightning/resolve/main/assets/edit/08/prompt.txt
583 Bytes
| 图1提供背包侧前方外观,图2提供同一背包背面结构,图3是待编辑骑行照片。让图3人物背上该背包,保持骑行姿势、人物、自行车、背景和相机视角。根据两个视角保留橙色包体、深灰底部、网状侧袋、黑色拉链、三角皮标及肩带结构;仅呈现当前视角下可见的细节。双肩带贴合肩部并自然受手臂遮挡,包体随身体前倾,比例合理,阴影符合原场景。 | |
| 每张输入图只提供指定的信息,不引入其余背景或物体。输出一张编辑后的完整图片。 | |