Run this model with HF Jobs
Run joyfox/Kontext-Remover-General-LoRA 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/joyfox/Kontext-Remover-General-LoRA. 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/joyfox/Kontext-Remover-General-LoRA 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 joyfox/Kontext-Remover-General-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use joyfox/Kontext-Remover-General-LoRA 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("joyfox/Kontext-Remover-General-LoRA", dtype=torch.bfloat16, device_map="cuda") prompt = "Remove this woman 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] - Diffusion Single File
How to use joyfox/Kontext-Remover-General-LoRA with Diffusion Single File:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
import torch
from diffusers import DiffusionPipeline
from diffusers.utils import load_image
# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("joyfox/Kontext-Remover-General-LoRA", dtype=torch.bfloat16, device_map="cuda")
prompt = "Remove this woman 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]valiantcat Kontext Dev LoRA

- Prompt
- Remove this woman from the scene

- Prompt
- Remove this child and bicycle from the scene

- Prompt
- Remove the apples under the kitten's body
Model Card for Model ID
This is a model for background removal, trained on black-forest-labs/FLUX.1-Kontext-dev, and is suitable for background removal tasks of e-commerce images, character images, and object images.For use in ComfyUI.
Model description
Trigger phrase
Remove xxx from the scene
Download model
Weights for this model are available in Safetensors format.
Training at Chongqing Valiant Cat
This model was trained by the AI Laboratory of Chongqing Valiant Cat Technology Co., LTD(https://vvicat.com/).Business cooperation is welcome
- Downloads last month
- 43
Model tree for joyfox/Kontext-Remover-General-LoRA
Base model
black-forest-labs/FLUX.1-Kontext-dev