naver-ai/StyleKeeper

Official Pytorch implementation of "StyleKeeper: Prevent Content Leakage using Negative Visual Query Guidance"

39
/ 100
Emerging

Enables training-free style transfer in text-to-image diffusion models by swapping key-value pairs in late self-attention layers while preserving original queries, preventing content leakage from reference images. Supports ControlNet integration for spatial control and real image style extraction with color calibration. Built on diffusers and transformers, with PyTorch 1.13.1+ and includes HuggingFace Spaces demos for interactive style-guided generation.

477 stars.

No Package No Dependents
Maintenance 6 / 25
Adoption 10 / 25
Maturity 9 / 25
Community 14 / 25

How are scores calculated?

Stars

477

Forks

33

Language

Python

License

Apache-2.0

Last pushed

Dec 02, 2025

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/diffusion/naver-ai/StyleKeeper"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.