
Qwen-Image-2.1-Object-Remover-Bbox-Preview
Qwen-Image-2.1-Object-Remover-Bbox-Preview is a preview LoRA adapter for Qwen-Image-2.1, designed for object removal using bounding box guidance. The adapter removes unwanted objects from selected regions while attempting to preserve surrounding textures, lighting, shadows, perspective, and overall image consistency.
[!NOTE]
This is an experimental preview model. Results may vary depending on the image, object, bounding box, and surrounding context.
Model Details
- Base Model: Qwen/Qwen-Image-2.1
- Adapter:
Qwen-Image-2.1-Object-Remover-Bbox-Preview
- Model Type: LoRA / Adapter
- Model Status: Preview / Experimental
- Created by: prithivMLmods
Training Specifications
| Parameter | Configuration |
|---|
| Dataset | 50 pairs of high-quality images with bounding box annotations and manually manipulated resultant images |
| Save Precision | BF16 |
| Learning Rate | 1e-4 |
| Optimizer | AdamW |
| Network Dimension (Rank) | 16 |
| Total Steps | 5000 |
| Trigger Prompt | Remove the red highlighted object from the scene |
Download
Download the model files from the Files & versions tab:
Download Qwen-Image-2.1-Object-Remover-Bbox-Preview
Usage
Load the LoRA adapter with Qwen-Image-2.1 and provide an image with the target object indicated by a bounding box.
Use the trigger prompt:
Remove the red highlighted object from the scene
For best results, use a clear bounding box around the object to be removed.
Some Example Comparisons
<table>
<thead>
<tr align="center">
<th width="22%">Input</th>
<th width="22%">- LoRA (Base Model)</th>
<th width="22%">+ LoRA</th>
<th width="34%">Description & Settings</th>
</tr>
</thead>
<tbody>
<tr>
<td align="center">
<img src="https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/UtGcANw9ssjqmrlFyzW4u.png" alt="Input - Objects" width="100%" />
</td>
<td align="center">
<img src="https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/FER98fUr-lcvUZrrY1A6G.png" alt="- LoRA - Objects" width="100%" />
</td>
<td align="center">
<img src="https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/hEwBd3LKNcDP9cnmosp7z.png" alt="+ LoRA - Objects" width="100%" />
</td>
<td>
<p><strong>Description:</strong> Removes unmarked objects and struggles at more than two objects (first silver and last marked black were not removed).</p>
<p><strong>Total Steps:</strong> 40</p>
</td>
</tr>
<tr>
<td align="center">
<img src="https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/dHKtDENkrtKenQnVDK5-F.png" alt="Input - Cats" width="100%" />
</td>
<td align="center">
<img src="https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/wLYk70jFNzYSYwZIL8Dq8.png" alt="- LoRA - Cats" width="100%" />
</td>
<td align="center">
<img src="https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/3Paj-1Bbos_0Pcp97o1yu.png" alt="+ LoRA - Cats" width="100%" />
</td>
<td>
<p><strong>Description:</strong> Base Model without LoRA struggles removing all bounding boxes (one cat remains unremoved).</p>
<p><strong>Total Steps:</strong> 40</p>
</td>
</tr>
<tr>
<td align="center">
<img src="https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/p1Tdm4b04_VDAsokJ9COy.png" alt="Input - Multiple Bbox" width="100%" />
</td>
<td align="center">
<img src="https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/63sNmdizhxE9VUhqWAfry.png" alt="- LoRA - Multiple Bbox" width="100%" />
</td>
<td align="center">
<img src="https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/hW_uWzMOL8MUA0dQUq_Oy.png" alt="+ LoRA - Multiple Bbox" width="100%" />
</td>
<td>
<p><strong>Description:</strong> Base Model without LoRA struggles to remove more than one object bounding box scenario.</p>
<p><strong>Total Steps:</strong> 40</p>
</td>
</tr>
<tr>
<td align="center">
<img src="https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/XyF1CJV0yAlOchE53LW8_.jpeg" alt="Input - Shadows" width="100%" />
</td>
<td align="center">
<img src="https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/-zu8x11Wv-9wA1JBz3You.png" alt="- LoRA - Shadows" width="100%" />
</td>
<td align="center">
<img src="https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/CPE76r-vUksqeZLdSWMC_.png" alt="+ LoRA - Shadows" width="100%" />
</td>
<td>
<p><strong>Description:</strong> Sometimes Base Model without LoRA struggles in retaining shadows after removal (look at the player's head shadow in the no-LoRA edition).</p>
<p><strong>Total Steps:</strong> 40</p>
</td>
</tr>
</tbody>
</table>
Limitations
This is an early preview release and may produce artifacts or inconsistencies in challenging cases, including:
- Complex backgrounds
- Large or overlapping objects
- Fine structures and textures
- Reflections and transparent objects
- Difficult lighting and perspective conditions
Results can vary depending on the input image and bounding box placement.
License
Please refer to the license terms of the base model, Qwen-Image-2.1, and ensure compliance with its terms when using or redistributing this adapter.
Acknowledgements
This adapter was created by prithivMLmods and is built for use with Qwen-Image-2.1.