How to use from the
Use from the
Diffusers library
pip install -U diffusers transformers accelerate
import torch
from diffusers import DiffusionPipeline

# switch to "mps" for apple devices
pipe = DiffusionPipeline.from_pretrained("undefined", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("pennypacker/kontextface")

prompt = "change the character to TOK"
image = pipe(prompt).images[0]

kontextface

Model description

Trigger words

You should use change the character to TOK to trigger the image generation.

Download model

Weights for this model are available in Safetensors format.

Download them in the Files & versions tab.

Training at fal.ai

Training was done using fal.ai/models/fal-ai/flux-kontext-trainer.

Downloads last month
17
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support