OpenPose 安装笔记

Environment

  • python 3.7
  • cuda 11.5
  • cudnn 8.3.2.44
  • cmake 3.12 or newer
  • OS Windows10
  • GPU nVidia GTX1060
  • Install opencv-python
python -m pip install --upgrade pip
python -m pip install opencv-python

ref. https://github.com/CMU-Perceptual-Computing-Lab/openpose/blob/master/doc/installation/1_prerequisites.md#windows-prerequisites

Download

git clone https://github.com/CMU-Perceptual-Computing-Lab/openpose
cd openpose/
git submodule update --init --recursive --remote

Build

  1. 在openpose下建立新的资料夹,名称为 build
  2. 开启CMake-gui
  • 设定路径参数,如下图
    https://ithelp.ithome.com.tw/upload/images/20220220/20146747rgy5dQkvIH.png

  • 选取BUILD_PYTHON, DOWNLOAD_BODY_COCO_MODE and DOWNLOAD_BODY_MPI_MODEL
    https://ithelp.ithome.com.tw/upload/images/20220220/20146747QKzWWrRlWf.png

  • 点击Configure,接着点击Generate
    https://ithelp.ithome.com.tw/upload/images/20220220/20146747CVg5zRHsnV.png

  1. 透过openpose/build/OpenPose.sln打开Visual Studio 2019
    https://ithelp.ithome.com.tw/upload/images/20220220/20146747SbnBKO3PQ4.png
  • 选取方案组态 “Release”
    https://ithelp.ithome.com.tw/upload/images/20220220/20146747qTlccU0GQo.png
  • 开始Build,点击建置方案
    https://ithelp.ithome.com.tw/upload/images/20220220/20146747QAVIxoFvnc.png

Execution

  • 打开命令提示元
    https://ithelp.ithome.com.tw/upload/images/20220220/2014674742AV6rtcl2.png
  • 进入openpose/build/examaples/tutorial_api_python
    https://ithelp.ithome.com.tw/upload/images/20220220/20146747gkyoKdKdkR.png
  • 执行01_body_from_image.py
python 01_body_from_image.py

https://ithelp.ithome.com.tw/upload/images/20220220/201467471q7ZzvDPng.png

https://ithelp.ithome.com.tw/upload/images/20220220/20146747gCeKGUoANq.png


<<:  C/C++ struct使用

>>:  ISO 27001 资讯安全管理系统 【解析】(九)

Z Ringtones - An intriguing assortment of telephone ringtones

In the event that you don't know which tune to pic...

[DAY3]架设Heroku

由於我们要建立一个能够及时回复的聊天机器人所以我们需要给我们回复的程序码一个明确的家,方便能够随时找...

Day8 GraphQL 介绍、在WordPress 上安装 WPGraphQL plugin

我们的系统架构很单纯,分为托管在 Vercel 上的 Next.js 前端,以及托管在 BlueHo...

Day4 如何安装Git的环境

大家好我是乌木白,今日要和大家分享如何安装Git的环境! 如何安装Git的环境 安装在 Windo...

Day12-旧网站重写成Vue_3_单一图片轮播

今天来写介绍那边图片轮播的功能 首先先写一个阵列data放图片 data: { img: [ &qu...