Instructions to use fal/Broccoli-Hair-Kontext-Dev-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use fal/Broccoli-Hair-Kontext-Dev-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("fal/Broccoli-Hair-Kontext-Dev-LoRA") prompt = "Change hair to a broccoli haircut" 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
How was this made?
#1
by HeyGoodEnough - opened
I am wondering how to train such lora?
How many image pairs are required?
we did it with 100 pairs
Not working for me. Creating real broccoli on a head. Trigger word obviously used.
Where are you testing it? It might not work on comfy
Yes in latest ComfyUI. Could be be converted for Comfy?
It is not working on ComfyUI because at that time when this lora made we did not have ComfyUI support on our Kontext Trainer. It wont work on Comfy.
I see, Thank you. All fal and your loras won't work or just this particular one?
This one and some old ones. New ones generally work on Comfy because we have an option to choose Comfy compatible loras now.