Ubuntu 下载加速
apt使用清华源
sudo vi /etc/apt/sources.list
1
2
3
4
5
6
7
8
9
10
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
更新apt
1 | sudo apt update |
1 | wget https://bootstrap.pypa.io/get-pip.py |
1 | mkdir ~/.pip |
1 | [global] |
1 | sudo apt install git |
1 | nslookup github.global.ssl.fastly.Net |
sudo vi /etc/hosts
文件中 1 | 151.101.76.249 http://global-ssl.fastly.net |
1 | sudo /etc/init.d/networking restart |
1 | git clone https://github.com/CMU-Perceptual-Computing-Lab/openpose |
准备工作
安装Cmake GUI
1
sudo apt-get install cmake-qt-gui
安装OpenCV
1
sudo apt-get install libopencv-dev
安装Cafe
1
sudo bash ./ubuntu/install_cmake.sh
配置
- Open CMake GUI and select the OpenPose directory as project source
directory, and a non-existing or empty sub-directory
(e.g.,
build
) where the Makefile files (Ubuntu) or Visual Studio solution (Windows) will be generated. Ifbuild
does not exist, it will ask you whether to create it. PressYes
.
- Press the
Configure
button, keep the generator inUnix Makefile
(Ubuntu) or set it toVisual Studio 14 2015 Win64
(Windows), and pressFinish
.
- If this step is successful, the
Configuring done
text will appear in the bottom box in the last line. Otherwise, some red text will appear in that same bottom box.
- Press the
Generate
button and proceed to OpenPose Building. You can now close CMake.
Note: If you prefer to use your own custom Caffe or OpenCV versions, see Custom Caffe or Custom OpenCV respectively.
v1.5.2