An implementation of a modular attention mechanism for Convolutional Neural Networks.
It is largely based on the paper:
RodrĂguez, Pau, et al. "Attend and rectify: a gated attention mechanism for fine-grained recovery." Proceedings of the European Conference on Computer Vision (ECCV). 2018.