Customized Caffe local user installation script for ETH Zurich's IVC cluster. Meant to work with a modules system and assumes CUDA and other things are available.
Not intended for generic use, but hopefully it may help serve as a starting point for other people.
This is intentonally vague, but provided in the hopes that it would help one understand the purpose of these scripts.
- Gain access to GPU machine/cluster. If it's your local machine, or one where you have sudo access (e.g., AWS/Azure instance), then your life will probably be much easier, and this repo probably isn't for you ;).
- Establish how you can access that GPU. This script set assumes the cluster is accessed via slurm, but it can be modified for systems with no job scheduling, lsf-based systems, etc.
- Additionally, the scripts assume the system supports environment modules for loading different versions of CUDA, cuDNN, boost, etc.
- If the above conditions are met (or once you tweaked the scripts
accordingly), the first thing you will need to do is install Caffe (duh!).
This is done by running
./setup-mnc.sh
on the remote host. This script will load the appropriate modules and set up miniconda for the Python stuff, as well as some of the other dependencies (miniconda manages more than jus Python packages!). It will then build Caffe, pycaffe, and run its tests. It will also download the MNC's pretrained weights provided by its authors. - You can then use
run-mnc-demo.sh
to run the demo provided by the authors. You should either run that script from theMNC
project root, or provide the--input
and--output
flags explicitly. - (Bonus) You can use
run-mnc-demo-batch.sh
to run the demo as a batch job viasbatch
, instead of interactively viasrun
. - (Bonus) The
run-euryale.sh
andfetch-euryale.sh
scripts are special-use-case ones which are meant to run the segmentation on full sequences of the KITTI dataset. The first one rsyncs the data to the server and kicks off a batch job to process them, while the second one can be used to rsync the results back when they're done.