Skip to content

Instantly share code, notes, and snippets.

@mthrok
Last active September 29, 2016 16:29
Show Gist options
  • Save mthrok/db4a02afc36f571768df645d3fb0812c to your computer and use it in GitHub Desktop.
Save mthrok/db4a02afc36f571768df645d3fb0812c to your computer and use it in GitHub Desktop.
# From Ubuntu 14.04 clean installation
# Install Caffe Dependencies as explained in Caffe doc
sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-compiler
sudo apt-get install --no-install-recommends libboost-all-dev
sudo apt-get install libatlas-base-dev
sudo apt-get install libgflags-dev libgoogle-glog-dev liblmdb-dev
# Install DeepTerrainRL Dependencies
sudo apt-get install libgl1-mesa-dev-lts-trusty libglew-dev freeglut3-dev
sudo apt-get install premake4
sudo apt-get install f2c
# clone repo
git clone http://github.com/xbpeng/DeepTerrainRL
cd DeepTerrainRL
# Download externals
wget https://github.com/xbpeng/DeepTerrainRL/releases/download/v1.0/TerrainRL-external-Linux.tar.gz
tar -xzvf TerrainRL-external-Linux.tar.gz
# build
premake4 gmake
make config=debug64
# Export Caffe
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:$( pwd )/external/caffe/build/lib/"
# Run
./TerrainRL -arg_file= args/sim_dog_args.txt
./TerrainRL_Optimizer -arg_file= args/opt_args_train_mace.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment