Skip to content

kvananth/umbc_verisk_collab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UMBC-Verisk

Installation

Installation is simple. You need to install:

You can install all of these with the commands:

# install torch first
git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch; bash install-deps;
./install.sh

# install libraries
luarocks install cunn
luarocks install cudnn
luarocks install tds
luarocks install https://raw.githubusercontent.com/szym/display/master/display-scm-0.rockspec

Learning Resources

Model

3D conv-nets C3D

Data Setup

THUMOS'15 dataset can be downloaded from THUMOS

Training

To start training, just do:

$ CUDA_VISIBLE_DEVICES=0 th main.lua

where you replace the number after CUDA_VISIBLE_DEVICES with the GPU you want to run on. You can find which GPU to use with $ nvidia-smi on our GPU cluster. Note: this number is 0-indexed, unlike the rest of Torch!

During training, it will dump snapshots to the checkpoints/ directory every epoch. Each time you start a new experiment, you should change the name (in opt), to avoid overwriting previous experiments.

Evaluation

To evaluate your model, you can use the eval.lua script. It mostly follows the same format as main.lua. It reads your validation/testing dataset from a file similar to before, and sequentially runs through it, calculating both the top-1 and top-5 accuracy.

Graphics, Logs

If you want to see graphics and the loss over time, in a different shell on the same machine, run this command:

$ th -ldisplay.start 8000 0.0.0.0

then navigate to http://HOST:8000 in your browser. Every 10th iteration it will push graphs.