Torch implementation of DRAW: A Recurrent Neural Network For Image Generation
Lua
Latest commit 773ae49 Oct 6, 2015 @vivanov879 Update README.md
Permalink
Failed to load latest commit information.
doc asdf Jun 6, 2015
.gitignore asdf Jun 11, 2015
DRAW.pdf no message Sep 18, 2015
Plot_result_no_binarization_example.png no message Sep 29, 2015
Plot_results_example.png no message Sep 29, 2015
README.md Update README.md Oct 7, 2015
draw_attention.lua asdf Jun 11, 2015
draw_attention_read.lua asdf Jun 11, 2015
draw_no_attention_gaussian.lua asdf Jun 11, 2015
draw_no_attention_sigmoid.lua asdf Jun 11, 2015
model_utils.lua asdf Jun 5, 2015
plot_results.lua asdf Jun 11, 2015
plot_results_no_binarization.lua asdfg Jun 22, 2015
read_patch.lua asdf Jun 10, 2015
selective.lua asdf Jun 9, 2015
te.lua asdf Jun 9, 2015
te1.lua 1234 Jun 10, 2015
te2.lua 1234 Jun 10, 2015
write_patch.lua asdf Jun 11, 2015

README.md

Torch implementation of DRAW: A Recurrent Neural Network For Image Generation http://arxiv.org/pdf/1502.04623.pdf. Watch Deep Learning Lecture 14: Karol Gregor on Variational Autoencoders and Image Generation https://www.youtube.com/watch?v=P78QYjWh5sM&list=PLE6Wd9FR--EfW8dtjAuPoTuPcqmOV53Fu&index=3

Run th draw_attention.lua in Terminal.app, it generates x_prediction, which you can plot by running plot_results*.lua in zbs-torch (https://github.com/soumith/zbs-torch) with QLua-LuaJit interpreter selected from 'Project' tab. Adjust the running time of the script by changing:

1. n_data (the number of MNIST examples to train on)
2. number of iterations
3. n_z, dimension of the hidden layer z
4. rnn_size, dimension of h_dec and h_enc

draw_attention.lua works with 28x28 MNIST dataset. You can adjust it to other datasets by changing A, N and replacing number '28' everywhere in the script. I haven't done it but it is possible.

draw_no_attention*.lua scripts implement DRAW without attention. In draw_attention_read.lua only read is attentive, while write is without attention.

draw_no_attention*.lua scripts print arrays in the end, which helps to quickly estimate the quality of the results without plotting

Example output by plot_results.lua th visualize_word_vectors.lua

Example output by plot_results_no_binarization.lua th visualize_word_vectors.lua