Skip to content

OrBin/TRMPG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TRMPG: torch-rnn man-page generator

Man-page generation, using jcjohnson/torch-rnn.

Docker image is based on crisbal/docker-torch-rnn.

Available tags

  • orbin/trmpg:base
    • Based on crisbal/torch-rnn:base
    • Allows usage of torch-rnn in CPU mode
  • orbin/trmpg:cuda7.5

Output examples

Examples for received output:

Pre-trained models

I supply two checkpoints of the training:

Usage

CPU Only

  1. Run the container

    docker run -it orbin/trmpg:base

  2. Train

    th train.lua \
    -input_h5 data/manpages.h5 \
    -input_json data/manpages.json \
    -gpu -1
    
  3. Sample, save and view the generated man-page

    Note: the checkpoint numbers are multiples of 1000.

    ./sample_checkpoint.sh <checkpoint number>

GPU

  1. Run the container

    docker run -it orbin/trmpg:cuda7.5

  2. Train

    th train.lua \
    -input_h5 data/manpages.h5 \
    -input_json data/manpages.json
    
  3. Sample, save and view the generated man-page

    Note: the checkpoint numbers are multiples of 1000.

    ./sample_checkpoint.sh <checkpoint number>