prithivMLmods commited on
Commit
a9983cc
·
verified ·
1 Parent(s): 54ecefb

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +45 -1
README.md CHANGED
@@ -11,4 +11,48 @@ tags:
11
  - Bbox
12
  - art
13
  - Object-Remover
14
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  - Bbox
12
  - art
13
  - Object-Remover
14
+ ---
15
+
16
+ # **FLUX.2-Klein-Object-Remover-Bbox**
17
+
18
+ > **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.
19
+
20
+ ## **Quick Start with Diffusers**
21
+
22
+ ```bash
23
+ pip install -U diffusers transformers accelerate
24
+ ```
25
+
26
+ ```python
27
+ import torch
28
+ from diffusers import DiffusionPipeline
29
+ from diffusers.utils import load_image
30
+
31
+ # Switch to "mps" for Apple devices
32
+ pipe = DiffusionPipeline.from_pretrained(
33
+ "black-forest-labs/FLUX.2-klein-base-9B",
34
+ torch_dtype=torch.bfloat16
35
+ ).to("cuda")
36
+
37
+ pipe.load_lora_weights("prithivMLmods/FLUX.2-Klein-Object-Remover-Bbox")
38
+
39
+ prompt = "Remove the red highlighted object from the scene."
40
+
41
+ input_image = load_image(
42
+ "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png"
43
+ )
44
+
45
+ image = pipe(image=input_image, prompt=prompt).images[0]
46
+ ```
47
+
48
+ ## **Trigger Prompt**
49
+
50
+ ```
51
+ Remove the red highlighted object from the scene.
52
+ ```
53
+
54
+ ## **Download Model**
55
+
56
+ You can download the model files from the **Files & versions** tab:
57
+
58
+ [Download](https://huggingface.co/prithivMLmods/FLUX.2-Klein-Object-Remover-Bbox/tree/main)