Image-to-Image
Diffusers
English
qwen
qwen-image-edit
qwen-image-edit-2511
lora
multi-angle
camera-angles
camera-control
image-editing
gaussian-splatting
fal
Instructions to use hdvillazon/Qwen-Image-Edit-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use hdvillazon/Qwen-Image-Edit-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-2511", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("hdvillazon/Qwen-Image-Edit-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
Create adapter_config.json
Browse files- adapter_config.json +19 -0
adapter_config.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"base_model_name_or_path": "Qwen/Qwen2-VL-7B-Instruct",
|
| 3 |
+
"peft_type": "LORA",
|
| 4 |
+
"task_type": "CAUSAL_LM",
|
| 5 |
+
"r": 64,
|
| 6 |
+
"lora_alpha": 128,
|
| 7 |
+
"target_modules": [
|
| 8 |
+
"q_proj",
|
| 9 |
+
"v_proj",
|
| 10 |
+
"k_proj",
|
| 11 |
+
"o_proj",
|
| 12 |
+
"gate_proj",
|
| 13 |
+
"up_proj",
|
| 14 |
+
"down_proj"
|
| 15 |
+
],
|
| 16 |
+
"lora_dropout": 0.05,
|
| 17 |
+
"bias": "none",
|
| 18 |
+
"inference_mode": true
|
| 19 |
+
}
|