Image-to-Image
Diffusers
English
flux-kontext-lora
flux
lora
kontext
web-design
ui-ux
design-transformation
instruction-following
Instructions to use styly-agents/instructdesign-kontext with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use styly-agents/instructdesign-kontext 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-dev", dtype=torch.bfloat16, device_map="cuda") pipe.load_lora_weights("styly-agents/instructdesign-kontext") prompt = "Turn this cat into a dog" 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] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
File size: 375 Bytes
1c2a997 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | {
"model_type": "flux-kontext-lora",
"base_model": "black-forest-labs/FLUX.1-dev",
"lora_checkpoint": "flux_kontext_lora_v4_consolidated_000010000.safetensors",
"training_steps": 10000,
"dataset_size": 937,
"parameters": {
"steps": 20,
"cfg": 1.0,
"guidance": 5.0,
"sampler": "er_sde",
"scheduler": "kl_optimal",
"lora_strength": 1.0
}
} |