Instructions to use lightx2v/Qwen-Image-Lightning with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use lightx2v/Qwen-Image-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", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("lightx2v/Qwen-Image-Lightning") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
4 step lora Blurry images
Hello I am getting blurry images like that Lora do not work at all ;/ any ideas how to fix it?
Same for me images are blurry. im using ComfyUI v0.3.52 and my GPU is L40s. Im using the FP8 version of the Qwen-Image-Edit model.
i've tried the Qwen-Image-Edit-Lightning-4steps-V1.0-bf16.safetensors and
Qwen-Image-Edit-Lightning-4steps-V1.0.safetensors but both are blurry.
However Qwen-Image-Lightning-4steps-V1.0.safetensors is working very good with Qwen-Image-Edit 🤷♂️
EDIT: The issue seems to occur only when doing text2img (I've tried the same workflow with and without an input image)
according to this subreddit txt2img doesn't work with the qwen-image-edit lora: https://github.com/ModelTC/Qwen-Image-Lightning/issues/26#issuecomment-3218541520