← all repositories

lucidrains/slot-attention

PyTorch implementation of Google AI's Slot Attention, an attention mechanism for object-centric learning and clustering.

487 stars Python ML Frameworks
slot-attention
Velocity · 7d
+0.2
★ / day
Trend
steady
star history

This repository provides a PyTorch implementation of Slot Attention, a neural network architecture that uses a differentiable attention mechanism to decompose data into distinct slots representing objects or entities. The implementation includes the core SlotAttention module with configurable iteration counts, and extends to MultiHeadSlotAttention and AdaptiveSlotWrapper for generating soft slot masks. The model learns to segment and represent multiple objects in a scene without explicit supervision on object boundaries.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.