Prerequisite
1 |
sudo apt-get install autoconf automake libtool curl make g++ git python-dev python-setuptools unzip |
Protobuf 3
1 2 3 4 5 6 7 8 9 |
export PROTOBUF_ROOT=~/.softwares/protobuf git clone https://github.com/google/protobuf.git $PROTOBUF_ROOT -b '3.2.x' cd $PROTOBUF_ROOT ./autogen.sh ./configure make "-j$(nproc)" make"-j$(nproc)" install DESTDIR=~ cd python python setup.py install --cpp_implementation --user |
caffe
Install caffe as being explained in my other post here.
DIGITS
visit https://github.com/NVIDIA/DIGITS/
Dependencies
1 |
sudo apt-get install --no-install-recommends git graphviz python-dev python-flask python-flaskext.wtf python-gevent python-h5py python-numpy python-pil python-pip python-scipy python-tk |
# Install repo packages
1 2 3 4 5 |
CUDA_REPO_PKG=http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_8.0.61-1_amd64.deb ML_REPO_PKG=http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64/nvidia-machine-learning-repo-ubuntu1604_1.0.0-1_amd64.deb wget "$CUDA_REPO_PKG" -O /tmp/cuda-repo.deb && sudo dpkg -i /tmp/cuda-repo.deb && rm -f /tmp/cuda-repo.deb wget "$ML_REPO_PKG" -O /tmp/ml-repo.deb && sudo dpkg -i /tmp/ml-repo.deb && rm -f /tmp/ml-repo.deb |
Building DIGITS
1 2 3 4 5 6 7 |
DIGITS_ROOT=~/.softwares/digits git clone https://github.com/NVIDIA/DIGITS.git $DIGITS_ROOT pip install -r $DIGITS_ROOT/requirements.txt --user cd $DIGITS_ROOT #The following line is because we have install caffe at <em><strong>~/usr/python </strong></em>and digits need to access caffe export PYTHONPATH=~/usr/python:$PYTHONPATH ./digits-devserver |