Image-to-Image
Diffusers
English
lora
qwen
qwen-image
qwen-image-edit
image-editing
inscene
spatial-understanding
scene-coherence
computer-vision
InScene
Instructions to use flymy-ai/qwen-image-edit-inscene-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use flymy-ai/qwen-image-edit-inscene-lora 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("flymy-ai/qwen-image-edit-inscene-lora") 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] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
fix diffusers code example :) (#2)
Browse files- fix diffusers code example :) (e84b04b765242e9c7ec4763c9b125eebd0d3ce31)
Co-authored-by: Linoy Tsaban <linoyts@users.noreply.huggingface.co>
README.md
CHANGED
|
@@ -82,7 +82,7 @@ pipeline.to("cuda")
|
|
| 82 |
|
| 83 |
```python
|
| 84 |
# Load trained LoRA weights for in-scene editing
|
| 85 |
-
pipeline.load_lora_weights("
|
| 86 |
```
|
| 87 |
|
| 88 |
### 🎨 Edit Image with Qwen-Image-Edit Inscene LoRA
|
|
|
|
| 82 |
|
| 83 |
```python
|
| 84 |
# Load trained LoRA weights for in-scene editing
|
| 85 |
+
pipeline.load_lora_weights("flymy-ai/qwen-image-edit-inscene-lora",weight_name="flymy_qwen_image_edit_inscene_lora.safetensors")
|
| 86 |
```
|
| 87 |
|
| 88 |
### 🎨 Edit Image with Qwen-Image-Edit Inscene LoRA
|