Torch LSTM/RNN based character level text generator, this version includes an HTTP interface
961
Docker images for using torch-rnn (https://github.com/YerevaNN/torch-rnn)
crisbal/torch-rnn:base
ubuntu:14.04crisbal/torch-rnn:cuda6.5
nvidia/cuda:6.5crisbal/torch-rnn:cuda7.5
nvidia/cuda:7.5More details here: https://github.com/YerevaNN/torch-rnn#usage
Start bash in the container
docker run --rm -ti jacopofar/torch-rnn:base bashPreprocess the sample data
python scripts/preprocess.py \
--input_txt data/tiny-shakespeare.txt \
--output_h5 data/tiny-shakespeare.h5 \
--output_json data/tiny-shakespeare.json
Train
th train.lua \
-input_h5 data/tiny-shakespeare.h5 \
-input_json data/tiny-shakespeare.json \
-gpu -1
Sample
th sample.lua -checkpoint cv/checkpoint_10000.t7 -length 2000 -gpu -1TODO GPU support not present yet
Install nvidia-docker
Start bash in the container
nvidia-docker run --rm -ti crisbal/torch-rnn:cuda7.5 bashPreprocess the sample data
python scripts/preprocess.py \
--input_txt data/tiny-shakespeare.txt \
--output_h5 data/tiny-shakespeare.h5 \
--output_json data/tiny-shakespeare.json
Train
th train.lua \
-input_h5 data/tiny-shakespeare.h5 \
-input_json data/tiny-shakespeare.json
Sample
th sample.lua -checkpoint cv/checkpoint_10000.t7 -length 2000Content type
Image
Digest
Size
465.3 MB
Last updated
over 9 years ago
docker pull jacopofar/docker-torch-rnn