#363 · Primary category: Computer Vision
self-attention-cv
Implementation of various self-attention mechanisms focused on computer vision. Ongoing repository.
Project last updated:09/14/21
GitHub Stars
1.2K
Forks
152
Contributors
2
License
MIT
Why we included this project
This PyTorch package gathers the self-attention blocks that keep appearing in vision transformers, saving you from reimplementing them each time. It includes multi-head attention, a transformer encoder, axial attention, a Vision Transformer, a TransUNet encoder, bottleneck attention blocks, and 1D/2D positional embeddings, all written with einsum and einops so the code stays readable. Each module comes with a short runnable example, so you can try it against your own tensors before reading the papers. The author's companion articles walk through the math behind each mechanism, which makes the repo a good learning resource while you prototype. Since the project hasn't been updated in a while, treat it as a reference implementation to build on rather than a production dependency you'd pin.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
opencv
Open Source Computer Vision Library
RuView
π RuView turns commodity WiFi signals into real-time spatial intelligence, vital sign monitoring, and presence detection — all without a single pixel of video.
PaddleOCR
Turn any PDF or image document into structured data for your AI. A powerful, lightweight OCR toolkit that bridges the gap between images/PDFs and LLMs. Supports 100+ languages.
MinerU
Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
tesseract
Tesseract Open Source OCR Engine (main repository)