NeuralTalk2
Post date: 2016/06/08 23:38:50
$ sudo apt-get -y install
$ git curl cmake libreadline-dev
$ git clone https://github.com/karpathy/neuraltalk2.git
$ curl -s https://raw.githubusercontent.com/torch/ezinstall/master/install-deps | bash
$ git clone https://github.com/torch/distro.git ~/torch --recursive cd ~/torch;
$ ./install.sh
$ source ~/.bashrc
$ luarocks install nn
$ luarocks install nngraph
$ luarocks install image
$ luarocks install lua-cjson
$ sudo apt-get -y install libprotobuf-dev protobuf-compiler
$ luarocks install loadcaffe
$ sudo apt-get install libhdf5-serial-dev hdf5-tools
$ git clone https://github.com/deepmind/torch-hdf5
$ cd torch-hdf5
$ luarocks make hdf5-0-0.rockspec
$ wget http://cs.stanford.edu/people/karpathy/neuraltalk2/checkpoint_v1_cpu.zip
$ unzip checkpoint_v1.zip
$ cd neuraltalk2
$ th eval.lua -gpuid -1 -model ../model_id1-501-1448236541.t7_cpu.t7 -image_folder ~/Pictures/2015 -num_images 10
$ cd vis
$ python -m SimpleHTTPServer