Instructions to use lognat0704/diffusion-loras with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use lognat0704/diffusion-loras with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Qwen/Qwen-Image-Edit", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("lognat0704/diffusion-loras") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
File size: 1,424 Bytes
170493b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | ---
license: apache-2.0
base_model: Qwen/Qwen-Image-Edit
tags:
- lora
- diffusers
- image-to-image
- qwen-image-edit
- image-editing
pipeline_tag: image-to-image
---
# Qwen-Image-Edit LoRAs
A collection of LoRA adapters I trained for [Qwen-Image-Edit](https://huggingface.co/Qwen/Qwen-Image-Edit),
focused on pose control and subject consistency in image editing.
The adapters were trained on a mix of collected reference images and synthetic images generated with the
Qwen image model.
## Adapters
| File | Purpose | Rank |
|------|---------|------|
| `qwen-image-edit/multipose_v50_rank96.safetensors` | Multi-pose control (latest) | 96 |
| `qwen-image-edit/multipose_v49h_rank96.safetensors` | Multi-pose control (prior revision) | 96 |
| `qwen-image-edit/qwen_Image_male.safetensors` | Male subject conditioning | - |
## Usage
Load an adapter on top of the Qwen-Image-Edit pipeline with `diffusers`:
```python
from diffusers import QwenImageEditPipeline
import torch
pipe = QwenImageEditPipeline.from_pretrained(
"Qwen/Qwen-Image-Edit", torch_dtype=torch.bfloat16
).to("cuda")
pipe.load_lora_weights(
"lognat0704/diffusion-loras",
weight_name="qwen-image-edit/multipose_v50_rank96.safetensors",
)
# image = pipe(prompt=..., image=...).images[0]
```
## Notes
- Adapters are rank-96 unless noted.
- The `multipose` series iterates on pose-conditioning quality; `v50` is the most recent.
|