Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Replication of "Recurrent models of visual attention", Mnih et al. 2014

Project description

Recurrent Models of Visual Attention

Replication in Tensorflow of the following paper:
Mnih, Volodymyr, Nicolas Heess, and Alex Graves.
"Recurrent models of visual attention."
Advances in neural information processing systems. 2014.

Based in part on the following implementations:


$ pip install thrillington
(thrillington because there is already a ram on PyPI, and because


The library can be run from the command line with a config file.

$ ram train ./RAM_config-2018-10-21.ini


  0%|          | 0/10000 [00:00<?, ?it/s]

config.train.resume is False,
will save new model and optimizer to checkpoint: /home/you/data/ram_output/results_20181021/checkpoints/ckpt

Epoch: 1/200 - learning rate: 0.001000

282.5s - hybrid loss: 1.690 - acc: 6.000: 100%|██████████| 10000/10000 [04:42<00:00, 35.65it/s]
  0%|          | 0/10000 [00:00<?, ?it/s]

mean accuracy: 9.97
mean losses: LossTuple(loss_reinforce=-1.1296023, loss_baseline=0.09972435, loss_action=2.3005059, loss_hybrid=1.2706277)

Epoch: 2/200 - learning rate: 0.001000

282.8s - hybrid loss: 1.223 - acc: 10.000: 100%|██████████| 10000/10000 [04:42<00:00, 35.50it/s]
  0%|          | 0/10000 [00:00<?, ?it/s]

For a detailed explanation of the config file format, please see here


To see past changes and work in progress, please check out the CHANGELOG.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for thrillington, version 0.0.2a1
Filename, size File type Python version Upload date Hashes
Filename, size thrillington-0.0.2a1-py3-none-any.whl (31.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size thrillington-0.0.2a1.tar.gz (26.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page