< >
Home » TX2入门教程软件篇 » TX2入门教程软件篇-安装caffe(jetpack3.3)

TX2入门教程软件篇-安装caffe(jetpack3.3)

TX2入门教程软件篇-安装caffe(jetpack3.3)

说明:

  • 介绍如何在tx2安装caffe
  • 测试环境:jetpack3.3

步骤:

  • 安装依赖:
# Basic
sudo apt-get --assume-yes update
sudo apt-get --assume-yes install build-essential
# General dependencies
sudo apt-get --assume-yes install libprotobuf-dev libleveldb-dev libsnappy-dev libhdf5-serial-dev protobuf-compiler libatlas-base-dev
sudo apt-get --assume-yes install --no-install-recommends libboost-all-dev
sudo apt-get --assume-yes install libgflags-dev libgoogle-glog-dev liblmdb-dev
# Python libs
sudo apt-get --assume-yes install python-pip python-dev build-essential
sudo -H pip install --upgrade pip
sudo -H pip install --upgrade numpy protobuf
# OpenCV is provided for tegra in JetPack
  • 如果pip提示错误,可能是已经做过升级或权限不对。可以尝试:
pip install --upgrade pip --user
pip install --upgrade numpy protobuf --user
  • 下载源码:
mkdir -p ~/dl/
git clone https://github.com/CMU-Perceptual-Computing-Lab/caffe.git  caffe
  • 编译

    cd ~/dl/caffe
    cp Makefile.config.Ubuntu16_cuda9_JetsonTX2_JetPack33 Makefile.config
    make all -jnproc && make distribute -jnproc

纠错,疑问,交流: 请进入讨论区点击加入Q群

获取最新文章: 扫一扫右上角的二维码加入“创客智造”公众号


标签: tx2入门教程软件篇