No duplicated posts, only 1 new post opened a day, and up to 2 opened a week. Otherwise, extrict user bans will occur.
Check the FAQ section, other GitHub issues, and general documentation before posting. E.g., low-speed, out-of-memory, output format, 0-people detected, installation issues, ...).
Keep posting all your issues in the same post.
No bans if you are unsure whether the post is duplicated!
Fill all the Your System Configuration section if you are facing an error or unexpected behavior. Some posts (e.g., feature requests) might not require it.
No questions about training or 3rd party libraries:
OpenPose only implements testing. For training, check OpenPose train.
CUDA/cuDNN check failed errors: They are usually fixed by re-installing CUDA, then re-installing the proper cuDNN version, then rebooting, and then re-installing OpenPose. Otherwise, check Nvidia/CUDA/cuDNN forums.
OpenCV errors: Install the default/pre-compiled OpenCV or check for OpenCV online help.
Set a proper issue title: Add the OS (Ubuntu, Windows) and be specific (e.g., do not call it: Error).
Only English comments.
Remove these posting rules from your post but follow them!
Posts which do not follow these rules will be ignored/deleted and those users banned with no further clarification.
Issue Summary
I've been trying to install openpose for a few months now and finally learnt how to install cpu version from here. I also needed to build python. During CMake configuration, CMake downloaded http://posefs1.perception.cs.cmu.edu/openpose/3rdparty/windows/caffe_16_2020_11_14.zip but replaced it with caffe_cpu_2018_05_27.zip (Can't remember download link) during generating (as in after enabling 'BUILD_PYTHONandGPU_MODEtoCPU_ONLY` and then clicking the 'Generate' button)
Executed Command (if any)
Note: add --logging_level 0 --disable_multi_thread to get higher debug information.
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell https://aka.ms/pscore6
PS D:\Mocap> git clone https://github.com/CMU-Perceptual-Computing-Lab/openpose
Cloning into 'openpose'...
remote: Enumerating objects: 16070, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 16070 (delta 0), reused 5 (delta 0), pack-reused 16064
Receiving objects: 100% (16070/16070), 84.43 MiB | 7.38 MiB/s, done.
Resolving deltas: 32% (3603/11257)
Resolving deltas: 100% (11257/11257), done.
Updating files: 100% (582/582), done.
PS D:\Mocap> cd openpose/
PS D:\Mocap\openpose> git submodule update --init --recursive --remote
Submodule '3rdparty/caffe' (https://github.com/CMU-Perceptual-Computing-Lab/caffe.git) registered for path '3rdparty/caffe'
Submodule '3rdparty/pybind11' (https://github.com/pybind/pybind11.git) registered for path '3rdparty/pybind11'
Cloning into 'D:/Mocap/openpose/3rdparty/caffe'...
Cloning into 'D:/Mocap/openpose/3rdparty/pybind11'...
Submodule path '3rdparty/caffe': checked out '2d4bf549aabf97265f76b9599b82540dde9218ed'
Submodule path '3rdparty/pybind11': checked out '023b3f32c83a0faab1a6702cba7fd7bc30589d31'
PS D:\Mocap\openpose> mkdir build/
Directory: D:\Mocap\openpose
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 13/7/2022 8:19 pm build
PS D:\Mocap\openpose> cd build/
PS D:\Mocap\openpose\build> cmake-gui
PS D:\Mocap\openpose\build>
In the CMake Generate output after second attempt
Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19044.
CMAKE_VERSION = 3.23.2
Building CPU Only.
Downloading windows dependencies...
opencv_450_v15_2020_11_18.zip already exists.
caffe3rdparty_16_2020_11_14.zip already exists.
caffe_cpu_2018_05_27.zip already exists.
Windows dependencies downloaded.
Adding Example Calibration
Adding Example tutorial_add_module_custom_post_processing
Adding Example tutorial_api_thread_1_user_processing_function
Adding Example tutorial_api_thread_2_user_input_processing_output_and_datum
Adding Example OpenPoseDemo
Adding Example 01_body_from_image_default
Adding Example 02_whole_body_from_image_default
Adding Example 03_keypoints_from_image
Adding Example 04_keypoints_from_images
Adding Example 05_keypoints_from_images_multi_gpu
Adding Example 06_face_from_image
Adding Example 07_hand_from_image
Adding Example 08_heatmaps_from_image
Adding Example 09_keypoints_from_heatmaps
Adding Example 10_asynchronous_custom_input
Adding Example 11_asynchronous_custom_input_multi_camera
Adding Example 12_asynchronous_custom_output
Adding Example 13_asynchronous_custom_input_output_and_datum
Adding Example 14_synchronous_custom_input
Adding Example 15_synchronous_custom_preprocessing
Adding Example 16_synchronous_custom_postprocessing
Adding Example 17_synchronous_custom_output
Adding Example 18_synchronous_custom_all_and_datum
Download the models.
Downloading BODY_25 model...
Model already exists.
Not downloading body (COCO) model
Not downloading body (MPI) model
Downloading face model...
Model already exists.
Downloading hand model...
Model already exists.
Models Downloaded.
pybind11 v2.3.dev0
Configuring done
OpenPose Output (if any)
Errors (if any)
Severity
Code
Description
Project File
Line
Suppression State
Warning
C4244
'return': conversion from 'long double' to 'double', possible loss of data
'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
'initializing': conversion from 'int' to 'google::uint64', signed/unsigned mismatch
OpenPoseDemo
D:\Mocap\openpose\include\openpose\flags.hpp 49
Warning
C4996
'localtime': This function or variable may be unsafe. Consider using localtime_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
'return': conversion from 'size_t' to 'int', possible loss of data (compiling source file D:\Mocap\openpose\src\openpose\net\bodyPartConnectorCaffe.cpp)
'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
unresolved external symbol "public: static class caffe::device * __cdecl caffe::Caffe::GetCPUDevice(void)" (?GetCPUDevice@Caffe@caffe@@SAPEAVdevice@2@XZ) referenced in function "public: virtual void __cdecl op::NetCaffe::initializationOnThread(void)" (?initializationOnThread@NetCaffe@op@@UEAAXXZ)
Select the topic(s) on your post, delete the rest:
Compilation/installation error
Help wanted
Question
Your System Configuration
Whole console output (if errors appeared), paste the error to PasteBin and then paste the link here: LINK
OpenPose version: Latest GitHub code? Or specific commit (e.g., d52878f)? Or specific version from Release section (e.g., 1.2.0)?
cloned from github at the date and time posted
Posting rules
Error
).Issue Summary
I've been trying to install openpose for a few months now and finally learnt how to install cpu version from here. I also needed to build python. During CMake configuration, CMake downloaded
http://posefs1.perception.cs.cmu.edu/openpose/3rdparty/windows/caffe_16_2020_11_14.zip
but replaced it withcaffe_cpu_2018_05_27.zip
(Can't remember download link) during generating (as in after enabling 'BUILD_PYTHONand
GPU_MODEto
CPU_ONLY` and then clicking the 'Generate' button)Executed Command (if any)
Note: add
--logging_level 0 --disable_multi_thread
to get higher debug information.In the CMake Generate output after second attempt
OpenPose Output (if any)
Errors (if any)
'return': conversion from 'long double' to 'double', possible loss of data
'bottom': unreferenced formal parameter (compiling source file D:\Mocap\openpose\src\openpose\net\netCaffe.cpp)
'bottom_index': unreferenced formal parameter (compiling source file D:\Mocap\openpose\src\openpose\net\netCaffe.cpp)
'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
'initializing': conversion from 'int' to 'google::uint64', signed/unsigned mismatch
'localtime': This function or variable may be unsafe. Consider using localtime_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
'return': conversion from 'size_t' to 'int', possible loss of data (compiling source file D:\Mocap\openpose\src\openpose\core\arrayCpuGpu.cpp)
'return': conversion from 'size_t' to 'int', possible loss of data (compiling source file D:\Mocap\openpose\src\openpose\face\faceExtractorCaffe.cpp)
'return': conversion from 'size_t' to 'int', possible loss of data (compiling source file D:\Mocap\openpose\src\openpose\hand\handExtractorCaffe.cpp)
'return': conversion from 'size_t' to 'int', possible loss of data (compiling source file D:\Mocap\openpose\src\openpose\net\bodyPartConnectorCaffe.cpp)
'return': conversion from 'size_t' to 'int', possible loss of data (compiling source file D:\Mocap\openpose\src\openpose\net\maximumCaffe.cpp)
'return': conversion from 'size_t' to 'int', possible loss of data (compiling source file D:\Mocap\openpose\src\openpose\net\netCaffe.cpp)
'return': conversion from 'size_t' to 'int', possible loss of data (compiling source file D:\Mocap\openpose\src\openpose\net\netOpenCv.cpp)
'return': conversion from 'size_t' to 'int', possible loss of data (compiling source file D:\Mocap\openpose\src\openpose\net\nmsCaffe.cpp)
'return': conversion from 'size_t' to 'int', possible loss of data (compiling source file D:\Mocap\openpose\src\openpose\net\resizeAndMergeCaffe.cpp)
'return': conversion from 'size_t' to 'int32_t', possible loss of data (compiling source file D:\Mocap\openpose\src\openpose\core\arrayCpuGpu.cpp)
'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
'top': unreferenced formal parameter (compiling source file D:\Mocap\openpose\src\openpose\net\netCaffe.cpp)
19 unresolved externals
unresolved external symbol "public: bool __cdecl caffe::Blob<double>::Reshape(class std::vector<int,class std::allocator<int> > const &)" (?Reshape@?$Blob@N@caffe@@QEAA_NAEBV?$vector@HV?$allocator@H@std@@@std@@@Z) referenced in function "public: void __cdecl op::ArrayCpuGpu<double>::Reshape(class std::vector<int,class std::allocator<int> > const &)" (?Reshape@?$ArrayCpuGpu@N@op@@QEAAXAEBV?$vector@HV?$allocator@H@std@@@std@@@Z)
unresolved external symbol "public: bool __cdecl caffe::Blob<double>::Reshape(int,int,int,int)" (?Reshape@?$Blob@N@caffe@@QEAA_NHHHH@Z) referenced in function "public: void __cdecl op::ArrayCpuGpu<double>::Reshape(int,int,int,int)" (?Reshape@?$ArrayCpuGpu@N@op@@QEAAXHHHH@Z)
unresolved external symbol "public: bool __cdecl caffe::Blob<float>::Reshape(class std::vector<int,class std::allocator<int> > const &)" (?Reshape@?$Blob@M@caffe@@QEAA_NAEBV?$vector@HV?$allocator@H@std@@@std@@@Z)
unresolved external symbol "public: bool __cdecl caffe::Blob<float>::Reshape(class std::vector<int,class std::allocator<int> > const &)" (?Reshape@?$Blob@M@caffe@@QEAA_NAEBV?$vector@HV?$allocator@H@std@@@std@@@Z) referenced in function "public: void __cdecl op::ArrayCpuGpu<float>::Reshape(class std::vector<int,class std::allocator<int> > const &)" (?Reshape@?$ArrayCpuGpu@M@op@@QEAAXAEBV?$vector@HV?$allocator@H@std@@@std@@@Z)
unresolved external symbol "public: bool __cdecl caffe::Blob<float>::Reshape(int,int,int,int)" (?Reshape@?$Blob@M@caffe@@QEAA_NHHHH@Z) referenced in function "public: void __cdecl op::ArrayCpuGpu<float>::Reshape(int,int,int,int)" (?Reshape@?$ArrayCpuGpu@M@op@@QEAAXHHHH@Z)
unresolved external symbol "public: bool __cdecl caffe::Blob<int>::Reshape(class std::vector<int,class std::allocator<int> > const &)" (?Reshape@?$Blob@H@caffe@@QEAA_NAEBV?$vector@HV?$allocator@H@std@@@std@@@Z) referenced in function "public: void __cdecl op::ArrayCpuGpu<int>::Reshape(class std::vector<int,class std::allocator<int> > const &)" (?Reshape@?$ArrayCpuGpu@H@op@@QEAAXAEBV?$vector@HV?$allocator@H@std@@@std@@@Z)
unresolved external symbol "public: bool __cdecl caffe::Blob<int>::Reshape(int,int,int,int)" (?Reshape@?$Blob@H@caffe@@QEAA_NHHHH@Z) referenced in function "public: void __cdecl op::ArrayCpuGpu<int>::Reshape(int,int,int,int)" (?Reshape@?$ArrayCpuGpu@H@op@@QEAAXHHHH@Z)
unresolved external symbol "public: bool __cdecl caffe::Blob<unsigned int>::Reshape(class std::vector<int,class std::allocator<int> > const &)" (?Reshape@?$Blob@I@caffe@@QEAA_NAEBV?$vector@HV?$allocator@H@std@@@std@@@Z) referenced in function "public: void __cdecl op::ArrayCpuGpu<unsigned int>::Reshape(class std::vector<int,class std::allocator<int> > const &)" (?Reshape@?$ArrayCpuGpu@I@op@@QEAAXAEBV?$vector@HV?$allocator@H@std@@@std@@@Z)
unresolved external symbol "public: bool __cdecl caffe::Blob<unsigned int>::Reshape(int,int,int,int)" (?Reshape@?$Blob@I@caffe@@QEAA_NHHHH@Z) referenced in function "public: void __cdecl op::ArrayCpuGpu<unsigned int>::Reshape(int,int,int,int)" (?Reshape@?$ArrayCpuGpu@I@op@@QEAAXHHHH@Z)
unresolved external symbol "public: static class caffe::device * __cdecl caffe::Caffe::GetCPUDevice(void)" (?GetCPUDevice@Caffe@caffe@@SAPEAVdevice@2@XZ) referenced in function "public: virtual void __cdecl op::NetCaffe::initializationOnThread(void)" (?initializationOnThread@NetCaffe@op@@UEAAXXZ)
unresolved external symbol "public: static class caffe::device * __cdecl caffe::Caffe::GetDefaultDevice(void)" (?GetDefaultDevice@Caffe@caffe@@SAPEAVdevice@2@XZ) referenced in function "public: __cdecl op::ArrayCpuGpu<int>::ArrayCpuGpu<int>(class op::Array<int> const &,bool)" (??0?$ArrayCpuGpu@H@op@@QEAA@AEBV?$Array@H@1@_N@Z)
unresolved external symbol "public: __cdecl caffe::Blob<double>::Blob<double>(class std::vector<int,class std::allocator<int> > const &,class caffe::device *)" (??0?$Blob@N@caffe@@QEAA@AEBV?$vector@HV?$allocator@H@std@@@std@@PEAVdevice@1@@Z) referenced in function "public: __cdecl op::ArrayCpuGpu<double>::ArrayCpuGpu<double>(class op::Array<double> const &,bool)" (??0?$ArrayCpuGpu@N@op@@QEAA@AEBV?$Array@N@1@_N@Z)
unresolved external symbol "public: __cdecl caffe::Blob<double>::Blob<double>(int,int,int,int,class caffe::device *)" (??0?$Blob@N@caffe@@QEAA@HHHHPEAVdevice@1@@Z) referenced in function "public: __cdecl op::ArrayCpuGpu<double>::ArrayCpuGpu<double>(int,int,int,int)" (??0?$ArrayCpuGpu@N@op@@QEAA@HHHH@Z)
unresolved external symbol "public: __cdecl caffe::Blob<float>::Blob<float>(class std::vector<int,class std::allocator<int> > const &,class caffe::device *)" (??0?$Blob@M@caffe@@QEAA@AEBV?$vector@HV?$allocator@H@std@@@std@@PEAVdevice@1@@Z) referenced in function "public: __cdecl op::ArrayCpuGpu<float>::ArrayCpuGpu<float>(class op::Array<float> const &,bool)" (??0?$ArrayCpuGpu@M@op@@QEAA@AEBV?$Array@M@1@_N@Z)
unresolved external symbol "public: __cdecl caffe::Blob<float>::Blob<float>(int,int,int,int,class caffe::device *)" (??0?$Blob@M@caffe@@QEAA@HHHHPEAVdevice@1@@Z) referenced in function "public: __cdecl op::ArrayCpuGpu<float>::ArrayCpuGpu<float>(int,int,int,int)" (??0?$ArrayCpuGpu@M@op@@QEAA@HHHH@Z)
unresolved external symbol "public: __cdecl caffe::Blob<int>::Blob<int>(class std::vector<int,class std::allocator<int> > const &,class caffe::device *)" (??0?$Blob@H@caffe@@QEAA@AEBV?$vector@HV?$allocator@H@std@@@std@@PEAVdevice@1@@Z) referenced in function "public: __cdecl op::ArrayCpuGpu<int>::ArrayCpuGpu<int>(class op::Array<int> const &,bool)" (??0?$ArrayCpuGpu@H@op@@QEAA@AEBV?$Array@H@1@_N@Z)
unresolved external symbol "public: __cdecl caffe::Blob<int>::Blob<int>(int,int,int,int,class caffe::device *)" (??0?$Blob@H@caffe@@QEAA@HHHHPEAVdevice@1@@Z) referenced in function "public: __cdecl op::ArrayCpuGpu<int>::ArrayCpuGpu<int>(int,int,int,int)" (??0?$ArrayCpuGpu@H@op@@QEAA@HHHH@Z)
unresolved external symbol "public: __cdecl caffe::Blob<unsigned int>::Blob<unsigned int>(class std::vector<int,class std::allocator<int> > const &,class caffe::device *)" (??0?$Blob@I@caffe@@QEAA@AEBV?$vector@HV?$allocator@H@std@@@std@@PEAVdevice@1@@Z) referenced in function "public: __cdecl op::ArrayCpuGpu<unsigned int>::ArrayCpuGpu<unsigned int>(class op::Array<unsigned int> const &,bool)" (??0?$ArrayCpuGpu@I@op@@QEAA@AEBV?$Array@I@1@_N@Z)
unresolved external symbol "public: __cdecl caffe::Blob<unsigned int>::Blob<unsigned int>(int,int,int,int,class caffe::device *)" (??0?$Blob@I@caffe@@QEAA@HHHHPEAVdevice@1@@Z) referenced in function "public: __cdecl op::ArrayCpuGpu<unsigned int>::ArrayCpuGpu<unsigned int>(int,int,int,int)" (??0?$ArrayCpuGpu@I@op@@QEAA@HHHH@Z)
unresolved external symbol "public: __cdecl caffe::Net<float>::Net<float>(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,enum caffe::Phase,class caffe::device *,int,class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > const *)" (??0?$Net@M@caffe@@QEAA@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@W4Phase@1@PEAVdevice@1@HPEBV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@3@@Z) referenced in function "public: virtual void __cdecl op::NetCaffe::initializationOnThread(void)" (?initializationOnThread@NetCaffe@op@@UEAAXXZ)
Type of Issue
Select the topic(s) on your post, delete the rest:
Your System Configuration
Whole console output (if errors appeared), paste the error to PasteBin and then paste the link here: LINK
OpenPose version: Latest GitHub code? Or specific commit (e.g., d52878f)? Or specific version from
Release
section (e.g., 1.2.0)? cloned from github at the date and time postedGeneral configuration:
lsb_release -a
in Ubuntu):gcc --version
in Ubuntu or VS version in Windows): 5.4.0, ... (Ubuntu); VS2015 Enterprise Update 3, VS2017Non-default settings:
3rd-party software:
cmake --version
in Ubuntu):apt-get install libopencv-dev
(only Ubuntu); OpenPose default (only Windows); compiled from source? If so, 2.4.9, 2.4.12, 3.1, 3.2?; ...?If GPU mode issue:
cat /usr/local/cuda/version.txt
in most cases):nvidia-smi
in Ubuntu):If CPU-only mode issue:
CPU brand & model:
Acer Aspire 3 A314-35-C5N7
Total RAM memory available:
8GB(sadly)
If Python API:
python -c "import numpy; print numpy.version.version"
in Ubuntu):If Windows system:
If speed performance issue: