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("ostris/kontext_big_head_lora")
prompt = "give this person a big head"
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]Big Head Kontext Dev LoRA

- Prompt
- give this person a big head

- Prompt
- give this person a big head

- Prompt
- give this person a big head
Model description
This model was trained with AI Toolkit. It was made while making a video tutiorial on how to train a LoRA. That tutorial is avaliable here. How to Train a Flux.1 Kontext LoRA with AI Toolkit
Trigger phrase
give this person a big head
- Downloads last month
- 12
Model tree for ostris/kontext_big_head_lora
Base model
black-forest-labs/FLUX.1-Kontext-dev