Instructions to use chestnutlzj/Edit-R1-Qwen-Image-Edit-2509 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use chestnutlzj/Edit-R1-Qwen-Image-Edit-2509 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("fill-in-base-model", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("chestnutlzj/Edit-R1-Qwen-Image-Edit-2509") 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
- Draw Things
adds 'lora' tag
#3
by linoyts HF Staff - opened
README.md
CHANGED
|
@@ -5,6 +5,8 @@ language:
|
|
| 5 |
library_name: diffusers
|
| 6 |
license: apache-2.0
|
| 7 |
pipeline_tag: image-to-image
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
# Edit-R1-Qwen-Image-Edit-2509: A model from UniWorld-V2
|
|
|
|
| 5 |
library_name: diffusers
|
| 6 |
license: apache-2.0
|
| 7 |
pipeline_tag: image-to-image
|
| 8 |
+
tags:
|
| 9 |
+
- lora
|
| 10 |
---
|
| 11 |
|
| 12 |
# Edit-R1-Qwen-Image-Edit-2509: A model from UniWorld-V2
|