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("kontext-community/relighting-kontext-dev-lora-v2")

prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k"
image = pipe(prompt).images[0]

relighting kontext dev lora

Model description

Kontext dev LoRA finetuned for relighting images, trained on a dataset of 25 synthetically relighted pairs of images.

Trigger words

You should use `` 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
15
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support