一、下载openpose
下载openpose

使用Git直接下载openpose

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

或者去github下载 openpose master.zip

unzip openpose-master.zip,用unzip命令解压,
mv openpose-master openpose, 然后重命名为openpose


二、下载模型文件

cd models
./getModels.sh
cd ..

三、Cmake编译

cd build
cmake ../ 修改buil/CMakeCache.txt的相关文件目录:
BULID_CAFFE -> OFF
Caffe_LIBS -> 修改成本地安装的目录
Caffe_INCLUDE_DIRS _> caffe安装文件的include目录 # 之后就可以编译了 make -j 8

四、测试安装

./build/examples/openpose/openpose.bin --video examples/media/video.avi

【注意】此处使用的caffe需要时openpose自带的caffe编译。否则运行自带模型会报错

- 首先把3rdparty/caffe/的文件 move到openpose同一级目录,然后编译caffe

- caffe编译之后,就可以使用此caffe编译OpenPose了

参考资料:

[OpenPose环境搭建]( )

OpenPose安装使用初步介绍

杂七杂八-------------------------------------------------------------------------------------------

ErrOR

fatal error: hdf5.h: No such file or directory compilation terminated.

fatal error: hdf5.h: No such file or directory compilation terminated.

1.修改  Makefile.config  文件

添加/usr/include/hdf5/serial/ 到 INCLUDE_DIRS后

即原来的:

INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include

现在变成:

INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/include /usr/include/hdf5/serial/

2.修改  Makefile  文件

在  Makefile  文件中,按住crtl+f  搜索:LIBRARIES +=

注意不是上面第1步的  Makefile.config!!!

把 hdf5_hl 和hdf5修改为hdf5_serial_hl 和 hdf5_serial。

即原来的:

LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_hl hdf5

现在变成:

LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_serial_hl hdf5_serial

————————————————

版权声明:本文为CSDN博主「volcano_Lin」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。

原文链接:https://blog.csdn.net/qq_38451119/article/details/81383266

nvcc fatal : Unsupported gpu architecture 'compute_20'

https://blog.csdn.net/weixin_37983220/article/details/85341058

错误:

VCC src/caffe/layers/softmax_loss_layer.cu

nvcc fatal   : Unsupported gpu architecture 'compute_20'

Makefile:605: recipe for target '.build_release/cuda/src/caffe/layers/softmax_loss_layer.o' failed

make: *** [.build_release/cuda/src/caffe/layers/softmax_loss_layer.o] Error 1

解决方案:

在Makefile.config文件中根据自己CUDA的版本注释不同的行。

# CUDA architecture setting: going with all of them.

# For CUDA < 6.0, comment the *_50 through *_61 lines for compatibility.

# For CUDA < 8.0, comment the *_60 and *_61 lines for compatibility.

# For CUDA >= 9.0, comment the *_20 and *_21 lines for compatibility.

CUDA_ARCH := #-gencode arch=compute_20,code=sm_20 \

#-gencode arch=compute_20,code=sm_21

-gencode arch=compute_30,code=sm_30 \

-gencode arch=compute_35,code=sm_35 \

-gencode arch=compute_50,code=sm_50 \

-gencode arch=compute_52,code=sm_52 \

-gencode arch=compute_60,code=sm_60 \

-gencode arch=compute_61,code=sm_61 \

-gencode arch=compute_61,code=compute_61

————————————————

版权声明:本文为CSDN博主「青春如诗_」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。

原文链接:https://blog.csdn.net/weixin_37983220/article/details/85341058

ERROR: gflags’

注意看第三句的末尾把namespace更改为了google,所以把原来函数前面的 " gflags:: " 改为 " google:: " 即可。

src/caffe/common.cpp: In function ‘void caffe::GlobalInit(int*, char***)’:

src/caffe/common.cpp:45:5: error: ‘::gflags’ has not been declared

::gflags::ParseCommandLineFlags(pargc, pargv, true);

^~~~~~

Makefile:591: recipe for target '.build_release/src/caffe/common.o' failed

make: *** [.build_release/src/caffe/common.o] Error 1

make: *** Waiting for unfinished jobs....

In file included from src/caffe/solvers/sgd_solver.cpp:5:0:

./include/caffe/util/hdf5.hpp:7:10: fatal error: hdf5.h: No such file or directory

#include "hdf5.h"

^~~~~~~~

compilation terminated.

Makefile:591: recipe for target '.build_release/src/caffe/solvers/sgd_solver.o' failed

make: *** [.build_release/src/caffe/solvers/sgd_solver.o] Error 1

ERROR

https://github.com/BVLC/caffe/issues/4621

Not sure if the correct solution but seemingly works:
add the second line in the Makefile:

LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_hl hdf5 \

opencv_core opencv_highgui opencv_imgproc opencv_imgcodecs

ISSUE:

CXX/LD -o .build_release/examples/mnist/convert_mnist_data.bin

.build_release/lib/libcaffe.so: undefined reference to `cblas_sgemv'

.build_release/lib/libcaffe.so: undefined reference to `cblas_dgemm'

.build_release/lib/libcaffe.so: undefined reference to `cblas_sscal'

.build_release/lib/libcaffe.so: undefined reference to `cblas_dgemv'

.build_release/lib/libcaffe.so: undefined reference to `cblas_saxpy'

.build_release/lib/libcaffe.so: undefined reference to `cblas_ddot'

.build_release/lib/libcaffe.so: undefined reference to `cblas_dasum'

.build_release/lib/libcaffe.so: undefined reference to `cblas_sgemm'

.build_release/lib/libcaffe.so: undefined reference to `cblas_dscal'

.build_release/lib/libcaffe.so: undefined reference to `cblas_scopy'

.build_release/lib/libcaffe.so: undefined reference to `cblas_sasum'

.build_release/lib/libcaffe.so: undefined reference to `cblas_daxpy'

.build_release/lib/libcaffe.so: undefined reference to `cblas_dcopy'

.build_release/lib/libcaffe.so: undefined reference to `cblas_sdot'

collect2: error: ld returned 1 exit status

Makefile:636: recipe for target '.build_release/tools/extract_features.bin' failed

make: *** [.build_release/tools/extract_features.bin] Error 1

make: *** Waiting for unfinished jobs....

ERROR R_X86_64_32 against

Linking CXX shared library ../../lib/libcaffe-d.so

/usr/bin/ld: /usr/local/lib/libcblas.a(cblas_sgemv.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC

/usr/local/lib/libcblas.a: error adding symbols: Bad value

collect2: error: ld returned 1 exit status

make[2]: *** [lib/libcaffe-d.so.1.0.0-rc3] Error 1

make[1]: *** [src/caffe/CMakeFiles/caffe.dir/all] Error 2

————————————————

版权声明:本文为CSDN博主「持久决心」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。

原文链接:https://blog.csdn.net/u013832707/article/details/52748944

解决方法:

编辑build文件夹下的CMakeCache.txt,将

//Path to a library.

Atlas_CBLAS_LIBRARY:FILEPATH=<path to libcblas.a>

改为:

//Path to a library.

Atlas_CBLAS_LIBRARY:FILEPATH=/usr/lib/libcblas.so //<path to libcblas.so in my machine>

————————————————

版权声明:本文为CSDN博主「持久决心」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。

原文链接:https://blog.csdn.net/u013832707/article/details/52748944

https://github.com/BVLC/caffe/issues/4621

I think the reason is you use make to compile, which makes caffe's python port only find libraries in this catalog. Maybe you use cmake to compile and it could work.
make clean
cd caffe-master
mkdir build
cd build
cmake ..
make all -j8
I hope I could help you!

OpenPose 开源库安装的更多相关文章

  1. MXNet 学习 (1) --- 最易上手的深度学习开源库 --- 安装及环境搭建

    安装环境:Win 10 专业版 64位 + Visual Studio 2015 Community. 记录下自己在有GPU的环境下安装配置MXNet的过程.该过程直接使用MXNet release ...

  2. 视觉slam十四讲开源库安装教程

    目录 前言 1.Eigen线性代数库的安装 2.Sophus李代数库的安装 3.OpenCV计算机视觉库的安装 4.PCL点云库的安装 5.Ceres非线性优化库的安装 6.G2O图优化库的安装 7. ...

  3. linux下安装libcurl及开源库的一般安装步骤

    前言 总有人说:要多看源代码!那么源代码去哪找呢?找到了又该怎么安装呢?本票博客不介绍如何使用和学习,只要讲获取和安装,以后会将curl和libevent的使用和学习. 一.开源库常用安装步骤 1.开 ...

  4. libCURL开源库在VS2010环境下编译安装,配置详解

    libCURL开源库在VS2010环境下编译安装,配置详解 转自:http://my.oschina.net/u/1420791/blog/198247 http://blog.csdn.net/su ...

  5. CocoaPods的安装及使用/利用开源库Diplomat实现分享及第三方登录/git的使用

    <<史上最简洁版本>> 1.gem sources -l查看 当前的源 //1.1 sudo -i..以下都是以管理员的身份来操作的 2.gem sources --remov ...

  6. 开源库dlib的安装与编译-CMake

    前言 最近项目涉及到关于face alignment的实现,了解到目前主要的算法有ERT.SDM.LBF等,其中由于dlib开源库实现了ERT算法,效果也很不错,故开始研究dlib的使用.而使用的第一 ...

  7. GitHub上那些值得一试的JAVA开源库--转

    原文地址:http://www.jianshu.com/p/ad40e6dd3789 作为一名程序员,你几乎每天都会使用到GitHub上的那些著名Java第三方库,比如Apache Commons,S ...

  8. .NET蓝牙开源库:32feet.NET

    在用C#调用蓝牙编程一文中我留个小悬念就是:InTheHand.Net.Personal.dll是怎么来的?这篇文章来解答这个问题,InTheHand.Net.Personal.dll就是来源于今天要 ...

  9. 快快快!27个提升效率的iOS开源库推荐

    文章来源:http://www.csdn.net/article/2015-07-21/2825264-27-ios-open-source-libraries/1 我热爱开源,更喜爱那些花费宝贵的业 ...

随机推荐

  1. 第1节 kafka消息队列:7、kafka的消费模型

  2. Unnatural

    1. 纪录片:非自然选择 1.1 CRISPR-Cas9的出现 1.2 故事1:先天性基因缺陷而失明的小孩 1.3 故事2:基因变异的蚊子 1.4 基因技术应用的现状 1.5 担忧 2. CRISPR ...

  3. Postgresql数据库数据简单的导入导出

    Postgresql数据库数据简单的导入导出 博客分类: DataBase postgres  命令操作: 数据的导出:pg_dump -U postgres(用户名)  (-t 表名)  数据库名( ...

  4. NOIP2017tg【逛公园】 题解

    先说点别的 emmm--,这是本蒟蒻的第一篇题解,大佬们勿喷QwQ(要不是看到写题解可以加贡献,我才--) 可以看到标签,是2017年提高的题目,好像是Day1T3,感觉提高考这样的题目挺好的,至少考 ...

  5. JuJu团队1月3号工作汇报

    JuJu团队1月3号工作汇报 JuJu   Scrum 团队成员 今日工作 剩余任务 困难 飞飞 测试dataloader 将model嵌入GUI 无 婷婷 调试代码 提升acc 无 恩升 -- 写p ...

  6. C++面试常见问题——10派生类的构造与析构

    派生类的构造与析构 派生类的构造 派生时构造函数与析构函数不会被继承,需要重新定义派生类的构造函数与析构函数.派生类对象包含了基类对象的值,创建派生类时首先会调用基类的构造函数,若派生类中含有其它类对 ...

  7. 关于AlertDialog多选框中全选和反选的实现办法

    package mobile.android.ch07.multi.choice.dialog; import android.app.Activity; import android.app.Ale ...

  8. axios 如何取消已发送的请求?

    前言 最近在项目中遇到一个问题,在连续发送同一请求时,如果第二次请求比第一次请求快,那么实际显示的是第一次请求的数据,这就会造成数据和我选择的内容不一致的问题.解决的方案:在后续发送请求时,判断之前的 ...

  9. 【LOJ3043】「ZJOI2019」线段树

    题面 问题可以转化为每次区间覆盖操作有 \(\frac{1}{2}\) 的概率进行,求标记和的期望.于是我们只要求出所有点有标记的概率即可. 我们设 \(f_i\) 表示节点 \(i\) 有标记的概率 ...

  10. 吴裕雄--天生自然java开发常用类库学习笔记:List接口

    import java.util.ArrayList ; import java.util.List ; import java.util.Collection ; public class Arra ...