Downloads · 30 days
127
21% of all-time downloads
prithivMLmods/FLUX.2-Klein-Object-Remover-Bbox
FLUX.2-Klein-Object-Remover-Bbox is a image-to-image model from prithivMLmods. Use it when you need one image transformed into another. It is set up for diffusers. The card lists the license as other.
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…
Downloads · 30 days
127
21% of all-time downloads
All-time downloads
611
Public
Repo size
435 MB
Likes
6
Public
Click a slice to open those files.
.safetensors522 MB · 100%
From the Hugging Face model README
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.
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(
"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]
Remove the red highlighted object from the scene.
You can download the model files from the Files & versions tab: