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("timbrooks/instruct-pix2pix", dtype=torch.bfloat16, device_map="cuda")
pipe.load_lora_weights("123min2/dessert-edit-lora")

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

Dessert editor LoRA (InstructPix2Pix)

Edits only the instructed part of a dessert photo (e.g. "Replace the strawberries with blueberries").

  • Base model: timbrooks/instruct-pix2pix
  • Training data: 123min2/dessert-edit (Food-101 desserts, edit pairs made with Qwen3-VL + Grounding DINO + SAM 2.1 + SDXL inpainting, filtered by CLIP / VLM judge / manual review)
  • LoRA rank 16 on U-Net attention (to_q, to_k, to_v, to_out), 3000 steps, batch 4, lr 0.0001, 512px
from diffusers import StableDiffusionInstructPix2PixPipeline
pipe = StableDiffusionInstructPix2PixPipeline.from_pretrained("timbrooks/instruct-pix2pix").to("cuda")
pipe.load_lora_weights("123min2/dessert-edit-lora")
image = pipe("Replace the strawberries with blueberries", image=photo, image_guidance_scale=1.5).images[0]
Downloads last month
12
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for 123min2/dessert-edit-lora

Adapter
(5)
this model

Dataset used to train 123min2/dessert-edit-lora