~ / projects /

Pose Estimation through Stable Diffusion

Pose estimation recovers where an object is and how it is oriented from an image. It works well until the object is partly hidden or sitting in clutter. At that point the local features classical extractors depend on are either occluded or ambiguous, and the depth cues they encode go with them.

Diffusion models learn representations that carry a great deal of structure about objects and scenes, as a side effect of learning to generate them. This project, for CMU 16-825 (Learning for 3D Vision), asked whether those internal features survive occlusion better than purpose-built descriptors.

Approach

Training and evaluation used LINEMOD, a benchmark chosen for exactly the conditions that break feature matching: occluded, texture-less objects in cluttered scenes. Template views of each object are rendered from viewpoints sampled around it, giving supervision across poses and viewing conditions the dataset itself underrepresents.

A pink cat model at the center of a hemisphere, with camera icons placed on the hemisphere's surface pointing at it.
Template views are rendered from cameras placed on a hemisphere around each object.

The model is trained with an InfoNCE contrastive loss. The choice matters here: pose estimation lives or dies on separating features from nearby viewpoints, which look almost identical, and a contrastive objective pushes exactly those near-neighbors apart in the embedding.

Pipeline diagram: an input query image feeds a trainable aggregation network on top of a frozen Stable Diffusion model, producing a final pose overlay compared against the ground-truth mask.
Training pipeline: Stable Diffusion's weights stay frozen, and only the aggregation network on top of its features is trained.

Results

Against traditional feature extraction, the diffusion-based approach improves both accuracy and error rates, on seen and unseen objects alike. It holds up in clear views and under moderate occlusion.

Three rows of results, each with the cluttered query image, the matched template, a green feature-match mask, and the estimated pose overlaid on the query: a cat from an elevated pose, a cat from the front, and an occluded cat seen from the back that is matched to the wrong object.
Three queries. The first two (elevated and front views) are matched correctly; in the third, a heavily occluded cat seen from behind, the template retrieved is the wrong object.

Heavy occlusion still breaks it, and it breaks in an informative way.

Failure mode. Under heavy occlusion the model misassigns the object class first, then produces a pose that is wrong because it is answering the wrong question. The recognition step has to degrade gracefully under occlusion before the pose estimate on top of it can.

  • Computer Vision
  • Deep Learning