← all repositories

AlexHex7/Non-local_pytorch

PyTorch implementation of Non-local Neural Block with multiple attention variants and visualization tools.

1.6k stars Python Computer VisionML Frameworks
Non-local_pytorch
Velocity · 7d
+0.5
★ / day
Trend
steady
star history

This repository provides a PyTorch implementation of the Non-local Neural Network block from the 2017 paper. It includes multiple variants of the attention mechanism (Gaussian, embedded Gaussian, concatenation, dot product) and supports automatic mixed precision training. The project includes training scripts for MNIST and tools to visualize non-local attention maps.

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