Home

Awesome

Recurrent Attention Model

Recurrent Attention Model with Chainer based on the following paper
arXiv:1406.6247: Recurrent Models of Visual Attention [Volodymyr Mnih+ 2014]

Features

Examples

glimpses and output probabilities at each time step

example on original MNIST

example on translated MNIST

example on cluttered translated MNIST

Dependencies

Python(2 or 3), Chainer, PIL, matplotlib, tqdm

Usage

train.py: optimizes weights of a RAM model and ouputs learned weights to *.chainermodel file every 100 epoch

➜ python train.py --original  

infer.py: plot result of inference by a trained RAM model (result will show up with your matplotlib's backend)

➜ python infer.py --original -m models/ram_original_epoch800.chainermodel