File size: 1,731 Bytes
e5236f4
 
 
54ecefb
 
 
 
 
 
 
 
 
 
a9983cc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
base_model:
- black-forest-labs/FLUX.2-klein-base-9B
license: other
language:
- en
pipeline_tag: image-to-image
library_name: diffusers
tags:
- lora
- Bbox
- art
- Object-Remover
---

# **FLUX.2-Klein-Object-Remover-Bbox**

> **FLUX.2-Klein-Object-Remover-Bbox** is an adapter LoRA developed for **black-forest-labs/FLUX.2-klein-base-9B**, designed to precisely remove unwanted objects from images using bounding box guidance. The model intelligently reconstructs the selected region with context-aware filling while preserving surrounding textures, lighting, shadows, and perspective. It delivers clean object removal without visible artifacts, edge distortion, or style mismatch, ensuring natural and seamless edits while retaining the original image quality.

## **Quick Start with Diffusers**

```bash
pip install -U diffusers transformers accelerate
```

```python
import torch
from diffusers import DiffusionPipeline
from diffusers.utils import load_image

# Switch to "mps" for Apple devices
pipe = DiffusionPipeline.from_pretrained(
    "black-forest-labs/FLUX.2-klein-base-9B",
    torch_dtype=torch.bfloat16
).to("cuda")

pipe.load_lora_weights("prithivMLmods/FLUX.2-Klein-Object-Remover-Bbox")

prompt = "Remove the red highlighted object from the scene."

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]
```

## **Trigger Prompt**

```
Remove the red highlighted object from the scene.
```

## **Download Model**

You can download the model files from the **Files & versions** tab:

[Download](https://huggingface.co/prithivMLmods/FLUX.2-Klein-Object-Remover-Bbox/tree/main)