环境配置
windwo10 x64 python 3.7 openpose1.7 cuda cudnn(可选) NVIDIA cuDNN是用于深度神经网络的GPU加速库。它强调性能、易用性和低内存开销 pycharm
下载openopse编译好的包
https://github.com/CMU-Perceptual-Computing-Lab/openpose/releases/download/v1.7.0/openpose-1.7.0-binaries-win64-gpu-python3.7-flir-3d_recommended.zip
解压文件
下载训练模型
执行下载脚本   第一次执行需要很长时间,耐心等待下载完成
安装cuda
https://developer.nvidia.com/cuda-downloads    
修改路径
使用pycharm 打开01_body_from_image.py 文件 
根据解压路径修改 
py需要要用到的包
pybind11 2.7.1 pytest 6.2.4 urllib3 1.25.7 pypiwin32 223 opencv-python 4.5.3.56 numpy 1.21.2
运行
右键运行  执行后的效果图 
问题及解决方法
F0901 23:32:18.646728 10372 syncedmem.cpp:71] Check failed: error == cudaSuccess (2 vs. 0) out of memory *** Check failure stack trace: ***  增加运行参数 
parser.add_argument("--net_resolution", default="-1x320")
|