DexOPD for Stable Diffusion 3.5
universal LoRA adapter for text and aesthetics
2 min readupdated
The model combines three specialized teachers for the base Stable Diffusion 3.5 Medium model, improving prompt-following accuracy, text generation on images, and overall visual appeal. The result is a single LoRA adapter (a small add-on to the base model) that runs in a standard diffusion pipeline without slowing down generation. Developed by researchers from Shanghai Jiao Tong University and Nankai University to improve generation quality without architectural complexity, this adapter is useful for researchers, designers, and enthusiasts who care about clear text in pictures and high aesthetics.
Key features
- Multi-task combination: combines the skills of compositional alignment, text rendering, and visual quality in a single adapter.
- Dual-Extrapolation method: uses teacher extrapolation and rewards for fine-tuning the diffusion process in 1,000 updates.
- Standard execution: runs as a regular LoRA module on top of the base model on a single CUDA-compatible video card.
- High metrics: outperforms the base model and competitors on key benchmarks like GenEval and DrawBench Aesthetic.
What you can do
- Signage and text generation: create detailed images with clear English text (for example, store signs or posters).
- Aesthetic enhancement: improve overall artistic appeal and detail elaboration in generations based on SD 3.5 Medium.
- Pipeline integration: connect the adapter via the PEFT library for everyday image generation with improved composition control.
Example
import torch
from diffusers import StableDiffusion3Pipeline
from peft import PeftModel
pipe = StableDiffusion3Pipeline.from_pretrained(
"stabilityai/stable-diffusion-3.5-medium",
torch_dtype=torch.float16,
)
pipe.transformer = PeftModel.from_pretrained(pipe.transformer, "SJTU-DENG-Lab/DexOPD")
pipe.to("cuda")
image = pipe(
'A shop window with a sign that reads "OPEN LATE"',
height=512,
width=512,
num_inference_steps=40,
guidance_scale=4.5,
).images[0]
image.save("dexopd.png")Read more
DetailsBenchmarks (GenEval Reward: 0.9736, OCR: 0.9515, Aesthetic: 6.4875)
Requirements: CUDA-compatible video card and FP16, access to the base SD 3.5 Medium model
Limitations: text generation works best in English
Format: PEFT LoRA (Rank 32, ~75 MB) for the SD3 transformer










Comments