Instructions to use PrunaAI/Pruna-Qwen-Image-2.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use PrunaAI/Pruna-Qwen-Image-2.1 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("PrunaAI/Pruna-Qwen-Image-2.1") 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
[D] Quality of Image benchmarking is missing
Latency benchmarking measures how fast the system can generate a picture. It doesn’t tell you if the output is good, useful, looks right, or matches what was put into it (the product/input). At this point there are no real image quality benchmarks that cover: - How closely the generated image matches the product/garment being represented - The quality of the visuals and if they have any visual problems (artifacts) - How well the generated image retains its identity - How structurally accurate the generated image is - How well the generated image preserves the color, pattern and/or texture of the original image - How similar the generated image is to the reference image - Whether humans or visual language models (VLMs) judge the generated image to be high quality.
We measure how quickly the model generates trash, however there is nothing that measures whether the model generates quality images. Quality benchmarking should be done along with latency benchmarking.