ubuntu20 openpose cuda11.7 cudnn8 opencv4.7.0

假设你已经装好了opencv4.7.0, cuda11.7 cudnn8
opencv4安装教程
cuda和cudnn安装教程
建议ubuntu换个源(ubuntu换源,建议ustc)

git clone https://github.com/CMU-Perceptual-Computing-Lab/openpose
cd openpose/

cd 3rdparty
git clone https://github.com/pybind/pybind11
git clone https://github.com/CMU-Perceptual-Computing-Lab/caffe.git
cd ..

git submodule update --init --recursive --remote

cd ..
cd scripts/ubuntu
bash install_deps.sh
cd ..

下载models/pose/body_25 放到models/pose/body_25
下载models/pose/coco 放到models/pose/coco
下载models/pose/mpi 放到models/pose/mpi
下载models/face 放到models/face
下载models/hand 放到models/hand

cd openpose/
mkdir build
cd build
cmake-gui ..

点configure
然后看看要不要把cudnn去掉(反正我去掉了)
然后再点configure
点generate
然后

make -j 8

测试

./build/examples/openpose/openpose.bin --video examples/media/video.avi --face --hand --write_json output_json_folder/

https://blog.csdn.net/zb1165048017/article/details/82115724/

你可能感兴趣的:(深度学习,安装与配置,caffe,ubuntu,人工智能)