Skip to content

Instantly share code, notes, and snippets.

@qcabel
Forked from jetsonhacks/installCaffe.sh
Last active March 21, 2016 13:31
Show Gist options
  • Select an option

  • Save qcabel/f69305b1c0986562a27a to your computer and use it in GitHub Desktop.

Select an option

Save qcabel/f69305b1c0986562a27a to your computer and use it in GitHub Desktop.
Install Caffe on NVIDIA Jetson TK1 LT4 21.2 - CUDA 6.5
#!/bin/sh
# Install and compile Caffe on NVIDIA Jetson TK1 Development Kit
sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install libprotobuf-dev protobuf-compiler gfortran \
libboost-dev cmake libleveldb-dev libsnappy-dev \
libboost-thread-dev libboost-system-dev \
libboost-filesystem-dev \
libatlas-base-dev libhdf5-serial-dev libgflags-dev \
libgoogle-glog-dev liblmdb-dev -y
sudo usermod -a -G video $USER
# Git clone Caffe
sudo apt-get install -y git
git clone https://github.com/BVLC/caffe.git
cd caffe && git checkout dev
cp Makefile.config.example Makefile.config
make -j 4 all
make -j 4 runtest
build/tools/caffe time --model=models/bvlc_alexnet/deploy.prototxt --gpu=0
# To install Python modules for Caffe
sudo apt-get install python-dev python-protobuf
sudo apt-get install python-numpy python-scipy
sudo apt-get install libboost-python-dev
sudo apt-get install python-opencv python-sklearn python-skimage
make pycaffe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment