Views
No views yet
stabilityai/stable-diffusion-3.5-medium1import torch
2from diffusers import StableDiffusion3Pipeline
3from peft import PeftModel
4
5model_id = "stabilityai/stable-diffusion-3.5-medium"
6lora_ckpt_path = "wookiekim/SD3.5M-SOLACE-on-FlowGRPO-OCR"
7device = "cuda"
8
9# Load base model and apply the SOLACE LoRA adapter
10pipe = StableDiffusion3Pipeline.from_pretrained(model_id, torch_dtype=torch.float16)
11pipe.transformer = PeftModel.from_pretrained(pipe.transformer, lora_ckpt_path)
12pipe.transformer = pipe.transformer.merge_and_unload()
13pipe = pipe.to(device)
14
15prompt = "a sign that says "SOLACE""
16image = pipe(
17 prompt,
18 height=512,
19 width=512,
20 num_inference_steps=40,
21 guidance_scale=4.5,
22 negative_prompt="",
23).images[0]
24image.save("solace.png")Note: This adapter already contains the combined Flow-GRPO + SOLACE update as a single LoRA — load it directly on the base SD3.5-Medium model; no separate Flow-GRPO adapter is required.
1@inproceedings{kim2026solace,
2 title={Improving Text-to-Image Generation with Intrinsic Self-Confidence Rewards},
3 author={Kim, Wookyoung and others},
4 booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
5 year={2026}
6}