Image-to-Image
Diffusers
flux
lora
replicate
How to use from the
Use from the
Diffusers library
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.1-Kontext-dev", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("fofr/kontext-make-person-real")

prompt = "make this person look real"
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]

Kontext lora: Make this person real

Prompt
make this person look real
Prompt
make this person look real

About this LoRA

This is a LoRA for the FLUX.1-Kontext-dev image-to-image model. It can be used with diffusers or ComfyUI.

It was trained on Replicate using: https://replicate.com/replicate/fast-flux-kontext-trainer/train

Prompt instruction

You should use make this person look real as part of the prompt instruction for your image-to-image editing.

Training details

  • Steps: 4000
  • Learning rate: 0.001
  • LoRA rank: 16

Contribute your own examples

You can use the community tab to add images that show off what you’ve made with this LoRA.

Downloads last month
109
Inference Providers NEW
Examples

Model tree for fofr/kontext-make-person-real

Adapter
(239)
this model

Space using fofr/kontext-make-person-real 1