Instructions to use PrunaAI/P-Q-Image-2.1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use PrunaAI/P-Q-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/P-Q-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
Update README.md
Browse files
README.md
CHANGED
|
@@ -30,7 +30,7 @@ tags:
|
|
| 30 |
|
| 31 |
<div align="center">
|
| 32 |
|
| 33 |
-
<h1 style="color: #9334E9;">⚡ Qwen-Image-2.1
|
| 34 |
|
| 35 |
<h2>Few-step LoRA adapters for Qwen-Image-2.1</h2>
|
| 36 |
|
|
@@ -44,7 +44,7 @@ tags:
|
|
| 44 |
|
| 45 |
</div>
|
| 46 |
|
| 47 |
-
**Qwen-Image-2.1
|
| 48 |
[`Qwen/Qwen-Image-2.1`](https://huggingface.co/Qwen/Qwen-Image-2.1) generate
|
| 49 |
and edit images in only 5 or 8 steps. The adapters load on top of the base
|
| 50 |
model, so the pipeline, text encoder and VAE stay unchanged. Training is based
|
|
@@ -118,7 +118,7 @@ pipe = QwenImage21Pipeline.from_pretrained(
|
|
| 118 |
"Qwen/Qwen-Image-2.1", torch_dtype=torch.bfloat16
|
| 119 |
).to("cuda")
|
| 120 |
pipe.load_lora_weights(
|
| 121 |
-
"PrunaAI/Qwen-Image-2.1
|
| 122 |
weight_name=f"p_qwen_image_2.1_{STEPS}step_v0.1.safetensors",
|
| 123 |
)
|
| 124 |
|
|
@@ -196,7 +196,7 @@ image = pipe(
|
|
| 196 |
|
| 197 |
## License
|
| 198 |
|
| 199 |
-
Qwen-Image-2.1
|
| 200 |
under the **Qwen RESEARCH LICENSE AGREEMENT**. Review its use restrictions
|
| 201 |
before using or redistributing the adapters.
|
| 202 |
|
|
|
|
| 30 |
|
| 31 |
<div align="center">
|
| 32 |
|
| 33 |
+
<h1 style="color: #9334E9;">⚡ Pruna-Qwen-Image-2.1</h1>
|
| 34 |
|
| 35 |
<h2>Few-step LoRA adapters for Qwen-Image-2.1</h2>
|
| 36 |
|
|
|
|
| 44 |
|
| 45 |
</div>
|
| 46 |
|
| 47 |
+
**Pruna-Qwen-Image-2.1 is a set of LoRA adapters that let
|
| 48 |
[`Qwen/Qwen-Image-2.1`](https://huggingface.co/Qwen/Qwen-Image-2.1) generate
|
| 49 |
and edit images in only 5 or 8 steps. The adapters load on top of the base
|
| 50 |
model, so the pipeline, text encoder and VAE stay unchanged. Training is based
|
|
|
|
| 118 |
"Qwen/Qwen-Image-2.1", torch_dtype=torch.bfloat16
|
| 119 |
).to("cuda")
|
| 120 |
pipe.load_lora_weights(
|
| 121 |
+
"PrunaAI/Pruna-Qwen-Image-2.1",
|
| 122 |
weight_name=f"p_qwen_image_2.1_{STEPS}step_v0.1.safetensors",
|
| 123 |
)
|
| 124 |
|
|
|
|
| 196 |
|
| 197 |
## License
|
| 198 |
|
| 199 |
+
Pruna-Qwen-Image-2.1 is a derivative of Qwen-Image-2.1 and is distributed
|
| 200 |
under the **Qwen RESEARCH LICENSE AGREEMENT**. Review its use restrictions
|
| 201 |
before using or redistributing the adapters.
|
| 202 |
|