Unsupervised Keypoints from Pretrained Diffusion Models
About
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 and can be found through our project page: https://ubc-vision.github.io/StableKeypoints/
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Keypoint Detection | Human3.6M | Mean L2 Error4.45 | 11 | |
| Keypoint Detection | Tai-Chi (test) | Summed L2 Error234.9 | 2 | |
| Keypoint Detection | CUB-200-2011 CUB-001 | Mean L2 Error10.5 | 2 | |
| Keypoint Detection | CUB-200 CUB-002 2011 | Mean L2 Error11.1 | 2 | |
| Keypoint Detection | CUB-200 CUB-003 2011 | Mean L2 Error10.3 | 2 | |
| Keypoint Detection | CUB-200-2011 all | Mean L2 Error5.4 | 2 | |
| Keypoint Detection | CUB-200 Aligned 2011 | Mean L2 Error5.06 | 2 |