Unsupervised Keypoints from Pretrained Diffusion Models

Eric Hedlin, Gopal Sharma, Shweta Mahajan, Xingzhe He, Hossam Isack +3 more
12/1/2023
diffusion-flow

No official code found. Best implementation: ubc-vision/StableKeypoints (96 stars, Apache-2.0, last commit 2025-07-25).

Abstract

Unsupervised learning of keypoints and landmarks has seen significant progress with the help of modern neural network architectures, but performance is yet to match the supervised counterpart, making their practicability questionable. We leverage the emergent knowledge within text-to-image diffusion models, towards more robust unsupervised keypoints. Our core idea is to find text embeddings that would cause the generative model to consistently attend to compact regions in images (i.e. keypoints). To do so, we simply optimize the text embedding such that the cross-attention maps within the denoising network are localized as Gaussians with small standard deviations. We validate our performance on multiple datasets: the CelebA, CUB-200-2011, Tai-Chi-HD, DeepFashion, and Human3.6m datasets. We achieve significantly improved accuracy, sometimes even outperforming supervised ones, particularly for data that is non-aligned and less curated. Our code is publicly available at the project page.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
9613Python, Jupyter NotebookNov 23, 20231 years agoApache-2.0

Similar Papers

Cite this paper

@article{hedlin2023unsupervised,
  title  = {Unsupervised Keypoints from Pretrained Diffusion Models},
  author = {Eric Hedlin and Gopal Sharma and Shweta Mahajan and Xingzhe He and Hossam Isack and Abhishek Kar Helge Rhodin and A. Tagliasacchi and Kwang Moo Yi},
  year   = {2023},
  eprint = {2312.00065},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2312.00065},
  journal = {CVPR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2312.00065.svg)](https://codeofpaper.com/paper/2312.00065)

Discussion