Downloads · 30 days
44
5% of all-time downloads
fediry/flux-kontext-object-placement-lora
flux-kontext-object-placement-lora is a machine learning model from fediry. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for diffusers. The card lists the license as other.
This is a LoRA (Low-Rank Adaptation) model trained on FLUX.1-Kontext for object placement tasks.
Downloads · 30 days
44
5% of all-time downloads
All-time downloads
853
Public
Repo size
2.1 GB
Likes
4
Public
Click a slice to open those files.
.safetensors2.1 GB · 100%
From the Hugging Face model README
This is a LoRA (Low-Rank Adaptation) model trained on FLUX.1-Kontext for object placement tasks.
from diffusers import FluxPipeline
import torch
# Load the base model
pipe = FluxPipeline.from_pretrained(
"black-forest-labs/FLUX.1-Kontext-dev",
torch_dtype=torch.bfloat16
)
# Load the LoRA
pipe.load_lora_weights("fediry/flux-kontext-object-placement-lora")
# Generate images with object placement
prompt = "place it --ctrl_img path/to/your/control/image.jpg"
image = pipe(prompt).images[0]
This LoRA was trained to help with object placement tasks using the FLUX Kontext architecture. It can be used to place objects in images by providing a control image and using the trigger word "place".