Run this model with HF Jobs
Run prithivMLmods/FLUX.2-Klein-Object-Remover-Bbox on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/prithivMLmods/FLUX.2-Klein-Object-Remover-Bbox. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/prithivMLmods/FLUX.2-Klein-Object-Remover-Bbox on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use prithivMLmods/FLUX.2-Klein-Object-Remover-Bbox with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use prithivMLmods/FLUX.2-Klein-Object-Remover-Bbox with Diffusers:
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", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("prithivMLmods/FLUX.2-Klein-Object-Remover-Bbox") prompt = "Turn this cat into a dog" 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] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
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
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]
Trigger Prompt
Remove the red highlighted object from the scene.
Download Model
You can download the model files from the Files & versions tab:
- Downloads last month
- 114
Model tree for prithivMLmods/FLUX.2-Klein-Object-Remover-Bbox
Base model
black-forest-labs/FLUX.2-klein-base-9B