The-AI-Summer/self-attention-cv
Implementation of various self-attention mechanisms focused on computer vision. Ongoing repository.
Provides modular PyTorch implementations of multi-head attention, axial attention, Vision Transformers, and positional embeddings using einsum/einops for efficient tensor operations. Includes pre-built architectures like ViT, ResNet50ViT, TransUnet, and BottleneckTransformer blocks that can be directly instantiated for image classification and segmentation tasks. Integrates with standard PyTorch workflows and includes relative/absolute positional embedding variants for 1D and 2D spatial attention.
1,215 stars. No commits in the last 6 months.
Stars
1,215
Forks
153
Language
Python
License
MIT
Category
Last pushed
Sep 14, 2021
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/transformers/The-AI-Summer/self-attention-cv"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
lucidrains/x-transformers
A concise but complete full-attention transformer with a set of promising experimental features...
kanishkamisra/minicons
Utility for behavioral and representational analyses of Language Models
lucidrains/dreamer4
Implementation of Danijar's latest iteration for his Dreamer line of work
lucidrains/simple-hierarchical-transformer
Experiments around a simple idea for inducing multiple hierarchical predictive model within a GPT
lucidrains/locoformer
LocoFormer - Generalist Locomotion via Long-Context Adaptation