Instructions to use gokaygokay/Fuse-it-Kontext-Dev-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use gokaygokay/Fuse-it-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("gokaygokay/Fuse-it-Kontext-Dev-LoRA") prompt = "Fuse this image into background" 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
Wrong fusion result
#3 opened 11 months ago
by
kasiasta91
'lora_unet_final_layer_adaLN_modulation_1.lora_down.weight'
#2 opened 11 months ago
by
kasiasta91
Difference between this and Light-Fix-Kontext-Dev-LoRA
1
#1 opened about 1 year ago
by
b1n0ry