Instructions to use ostris/kontext_big_head_lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ostris/kontext_big_head_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("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] - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
metadata
tags:
- flux
- image-to-image
- lora
- diffusers
- ai-toolkit
base_model: black-forest-labs/FLUX.1-Kontext-dev
instance_prompt: give this person a big head
license: other
license_name: flux1-dev-non-commercial-license
license_link: >-
https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev/blob/main/LICENSE.md
widget:
- text: give this person a big head
output:
url: imgs/01_big.png
- src: imgs/01.jpg
prompt: give this person a big head
output:
url: imgs/01_big.png
- text: give this person a big head
output:
url: imgs/05_big.png
- src: imgs/05.jpg
prompt: give this person a big head
output:
url: imgs/05_big.png
- text: give this person a big head
output:
url: imgs/06_big.png
- src: imgs/06.jpg
prompt: give this person a big head
output:
url: imgs/06_big.png
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