Commit ·
9d489e0
0
Parent(s):
Duplicate from prithivMLmods/Qwen-Image-Edit-2511-Object-Remover
Browse filesCo-authored-by: Prithiv Sakthi <prithivMLmods@users.noreply.huggingface.co>
- .gitattributes +35 -0
- Qwen-Image-Edit-2511-Object-Remover.safetensors +3 -0
- README.md +75 -0
- configuration.json +1 -0
.gitattributes
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.xz filter=lfs diff=lfs merge=lfs -text
|
| 33 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
+
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
+
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
Qwen-Image-Edit-2511-Object-Remover.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8102b5fda35de505d3825b73e355f1df69baff466fa53800fd31e6232c447632
|
| 3 |
+
size 236117064
|
README.md
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
pipeline_tag: image-to-image
|
| 6 |
+
library_name: diffusers
|
| 7 |
+
tags:
|
| 8 |
+
- lora
|
| 9 |
+
- object-remover
|
| 10 |
+
- art
|
| 11 |
+
base_model:
|
| 12 |
+
- Qwen/Qwen-Image-Edit-2511
|
| 13 |
+
---
|
| 14 |
+
|
| 15 |
+

|
| 16 |
+

|
| 17 |
+

|
| 18 |
+
|
| 19 |
+
# **Qwen-Image-Edit-2511-Object-Remover**
|
| 20 |
+
|
| 21 |
+
> Qwen-Image-Edit-2511-Object-Remover is an adapter (LoRA) developed for Qwen’s Qwen-Image-Edit-2511 image-to-image model, specifically designed for precise object removal from images. The model removes specified objects while preserving the background and remaining elements, maintaining realism and original visual details. It can be used in combination with the lighting model configured with 4 steps to produce high-quality, high-resolution results. A key strength of this model is its strong consistency during image editing, ensuring that surrounding textures, lighting, shadows, and scene structure remain intact after object removal. This makes it well suited for tasks that require clean edits without compromising image authenticity. Below are some example outputs that demonstrate the model’s ability to deliver accurate, realistic, and visually seamless object removal results.
|
| 22 |
+
|
| 23 |
+
## **Quick Start with Diffusers**
|
| 24 |
+
|
| 25 |
+
> Compatible with versions 2509 and 2511.
|
| 26 |
+
|
| 27 |
+
```bash
|
| 28 |
+
pip install -U diffusers transformers accelerate
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
```python
|
| 32 |
+
import torch
|
| 33 |
+
from diffusers import DiffusionPipeline
|
| 34 |
+
from diffusers.utils import load_image
|
| 35 |
+
|
| 36 |
+
# Switch to "mps" for Apple devices
|
| 37 |
+
pipe = DiffusionPipeline.from_pretrained(
|
| 38 |
+
"Qwen/Qwen-Image-Edit-2511",
|
| 39 |
+
dtype=torch.bfloat16,
|
| 40 |
+
device_map="cuda"
|
| 41 |
+
)
|
| 42 |
+
|
| 43 |
+
pipe.load_lora_weights("prithivMLmods/Qwen-Image-Edit-2511-Object-Remover")
|
| 44 |
+
|
| 45 |
+
prompt = "Remove the specified objects from the image while preserving the background and remaining elements maintaining realism and original details."
|
| 46 |
+
input_image = load_image(
|
| 47 |
+
"https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png"
|
| 48 |
+
)
|
| 49 |
+
|
| 50 |
+
image = pipe(image=input_image, prompt=prompt).images[0]
|
| 51 |
+
```
|
| 52 |
+
|
| 53 |
+
## **Sample Inferences(Remove Objects)**
|
| 54 |
+
|
| 55 |
+
| Input Image | Edit Prompt | Output Image |
|
| 56 |
+
|------------|-------------|--------------|
|
| 57 |
+
| <img src="https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/CRfqupC_4N2l0Couvp4w7.jpeg" width="1024"/> | Remove the necklace and goggles from the image while preserving the background and remaining elements, maintaining realism and original details. | <img src="https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/Bf38pCkxCI4vT2r1Ib82g.png" width="1024"/> |
|
| 58 |
+
| <img src="https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/NrPtDHkWBRfsI7D3BX_hL.jpeg" width="1024"/> | Remove the goggles from the image while preserving the background and remaining elements, maintaining realism and original details. | <img src="https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/-c-dVp47FdOvshiA7hWz-.png" width="1024"/> |
|
| 59 |
+
| <img src="https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/4-ufmiNZqk3hTY2NwBawO.jpeg" width="1024"/> | Remove the “S” logo from the image while preserving the background and remaining elements, maintaining realism and original details. | <img src="https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/GOaQLBcKAWjO8oWWaieRW.png" width="1024"/> |
|
| 60 |
+
| <img src="https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/I4u2GtAz256ProzfJwKP8.jpeg" width="1024"/> | Remove the logo from the image while preserving the background and remaining elements, maintaining realism and original details. | <img src="https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/gyHNoVQuBMagENgdWDElZ.png" width="1024"/> |
|
| 61 |
+
|
| 62 |
+
**Trained on [ModelScope.cn](https://modelscope.cn)**
|
| 63 |
+
|
| 64 |
+
## **Trigger Prompt**
|
| 65 |
+
|
| 66 |
+
You should use the following prompt to trigger object removal:
|
| 67 |
+
|
| 68 |
+
```
|
| 69 |
+
Remove the specified objects from the image while preserving the background and remaining elements maintaining realism and original details
|
| 70 |
+
```
|
| 71 |
+
|
| 72 |
+
## **Download Model**
|
| 73 |
+
|
| 74 |
+
You can download the model files from the **Files & versions** tab:
|
| 75 |
+
[Download](https://huggingface.co/prithivMLmods/Qwen-Image-Edit-2511-Object-Remover/tree/main)
|
configuration.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"framework": "pytorch", "task": "image-to-image", "allow_remote": true}
|