openpose icon indicating copy to clipboard operation
openpose copied to clipboard

[MSVC] OpenPose failed to download windows dependencies

Open Od0VxibTqto6Hs opened this issue 1 year ago • 9 comments

Issue Summary

OpenPose failed to download windows dependencies. Failed to: Downloading http://posefs1.perception.cs.cmu.edu/OpenPose/3rdparty/windows/opencv_450_v15_2020_11_18.zip Downloading http://posefs1.perception.cs.cmu.edu/OpenPose/3rdparty/windows/caffe3rdparty_16_2020_11_14.zip Downloading http://posefs1.perception.cs.cmu.edu/OpenPose/3rdparty/windows/caffe_cpu_2018_05_27.zip

Executed Command

cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.22621.0 -DGPU_MODE=CPU_ONLY .. 2>&1

Type of Issue

  • Compilation/installation error

System Configuration

  1. Whole console output
cmake -G "Visual Studio 17 2022" -A x64 -DCMAKE_SYSTEM_VERSION=10.0.22621.0 -DGPU_MODE=CPU_ONLY .. 2>&1
-- The C compiler identification is MSVC 19.38.32929.95
-- The CXX compiler identification is MSVC 19.38.32929.95
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.36.32532/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Tools/MSVC/14.36.32532/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- CMAKE_VERSION = 3.25.2
-- Building CPU Only.
-- Downloading windows dependencies...
-- Downloading http://posefs1.perception.cs.cmu.edu/OpenPose/3rdparty/windows/opencv_450_v15_2020_11_18.zip...
CMake Error at cmake/Utils.cmake:23 (file):
  file DOWNLOAD HASH mismatch

    for file: [F:/repo/CMU-Perceptual-Computing-Lab/openpose/3rdparty/windows/opencv_450_v15_2020_11_18.zip]
      expected hash: [afb1bd1a160c43cf5fb856c8bb4fc483]
        actual hash: [d41d8cd98f00b204e9800998ecf8427e]
             status: [28;"Timeout was reached"]

Call Stack (most recent call first):
  CMakeLists.txt:556 (download_zip)


-- Extracting F:/repo/CMU-Perceptual-Computing-Lab/openpose/3rdparty/windows/opencv_450_v15_2020_11_18.zip...
-- Downloading http://posefs1.perception.cs.cmu.edu/OpenPose/3rdparty/windows/caffe3rdparty_16_2020_11_14.zip...
CMake Error at cmake/Utils.cmake:23 (file):
  file DOWNLOAD HASH mismatch

    for file: [F:/repo/CMU-Perceptual-Computing-Lab/openpose/3rdparty/windows/caffe3rdparty_16_2020_11_14.zip]
      expected hash: [83c17dc4473985b6ab3a29fd9ab93409]
        actual hash: [d41d8cd98f00b204e9800998ecf8427e]
             status: [28;"Timeout was reached"]

Call Stack (most recent call first):
  CMakeLists.txt:557 (download_zip)


-- Extracting F:/repo/CMU-Perceptual-Computing-Lab/openpose/3rdparty/windows/caffe3rdparty_16_2020_11_14.zip...
-- Downloading http://posefs1.perception.cs.cmu.edu/OpenPose/3rdparty/windows/caffe_cpu_2018_05_27.zip...
CMake Error at cmake/Utils.cmake:23 (file):
  file DOWNLOAD HASH mismatch

    for file: [F:/repo/CMU-Perceptual-Computing-Lab/openpose/3rdparty/windows/caffe_cpu_2018_05_27.zip]
      expected hash: [87e8401b6dfbac5b8e909dd20e3b3390]
        actual hash: [d41d8cd98f00b204e9800998ecf8427e]
             status: [28;"Timeout was reached"]

Call Stack (most recent call first):
  CMakeLists.txt:561 (download_zip)


-- Extracting F:/repo/CMU-Perceptual-Computing-Lab/openpose/3rdparty/windows/caffe_cpu_2018_05_27.zip...
-- 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...
-- NOTE: This process might take several minutes depending on your internet connection.
CMake Error at cmake/Utils.cmake:8 (file):
  file DOWNLOAD HASH mismatch

    for file: [F:/repo/CMU-Perceptual-Computing-Lab/openpose/models/pose/body_25/pose_iter_584000.caffemodel]
      expected hash: [78287b57cf85fa89c03f1393d368e5b7]
        actual hash: [d41d8cd98f00b204e9800998ecf8427e]
             status: [28;"Timeout was reached"]

Call Stack (most recent call first):
  CMakeLists.txt:985 (download_model)


-- Not downloading body (COCO) model
-- Not downloading body (MPI) model
-- Downloading face model...
-- NOTE: This process might take several minutes depending on your internet connection.
CMake Error at cmake/Utils.cmake:8 (file):
  file DOWNLOAD HASH mismatch

    for file: [F:/repo/CMU-Perceptual-Computing-Lab/openpose/models/face/pose_iter_116000.caffemodel]
      expected hash: [e747180d728fa4e4418c465828384333]
        actual hash: [d41d8cd98f00b204e9800998ecf8427e]
             status: [28;"Timeout was reached"]

Call Stack (most recent call first):
  CMakeLists.txt:991 (download_model)


-- Downloading hand model...
-- NOTE: This process might take several minutes depending on your internet connection.
CMake Error at cmake/Utils.cmake:8 (file):
  file DOWNLOAD HASH mismatch

    for file: [F:/repo/CMU-Perceptual-Computing-Lab/openpose/models/hand/pose_iter_102000.caffemodel]
      expected hash: [a82cfc3fea7c62f159e11bd3674c1531]
        actual hash: [d41d8cd98f00b204e9800998ecf8427e]
             status: [28;"Timeout was reached"]

Call Stack (most recent call first):
  CMakeLists.txt:993 (download_model)


-- Models Downloaded.
-- Configuring incomplete, errors occurred!
  1. OpenPose version: 5e57c2d

  2. General configuration:

    • Installation mode: CMake (Windows)
    • Operating system: Windows
    • Operating system version : 10.0.22621
    • Compiler: Visual Studio 2022

Od0VxibTqto6Hs avatar Aug 01 '23 06:08 Od0VxibTqto6Hs

Hello, I am facing the same problem while installing OpenPose on Windows 11.

To solve the problem, you have to manually download and put caffe, caffe3rdparty and opencv in openpose/3rdparty/windows/. However, going forward, CMake will try to download face_model and hand_model and the same error will occur.

Last month I installed OpenPose on another laptop, using the same prerequisites I am currently using without any error.

It seems that CMake is unable to download dependencies, but we're running two different version of it (3.27 for me).

XeroLen23 avatar Aug 01 '23 21:08 XeroLen23

Hello, I am facing the same problem while installing OpenPose on Windows 11.

To solve the problem, you have to manually download and put caffe, caffe3rdparty and opencv in openpose/3rdparty/windows/. However, going forward, CMake will try to download face_model and hand_model and the same error will occur.

Last month I installed OpenPose on another laptop, using the same prerequisites I am currently using without any error.

It seems that CMake is unable to download dependencies, but we're running two different version of it (3.27 for me).

Hey i am facing the same issue and i have downloaded the models from here and manually added them to folder

https://github.com/CMU-Perceptual-Computing-Lab/openpose/issues/1602

But still i am getting zero person detected with the GPU flag & cuda out of memory for without GPU flag. I have doubled checked the CUDNN 8.5.0 & CUDA 11.7 as suggested.

Really need it done by today, Please anyone can help me out ?

gamingflexer avatar Aug 02 '23 04:08 gamingflexer

Thanks for the answer. I downloaded all the dependencies and models manually but while generating I got the following error:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
BOOST_FILESYSTEM_LIB_RELEASE
    linked by target "openpose" in directory C:/Users/svonk/Documents/GitHub/openpose/src/openpose
    linked by target "openpose" in directory C:/Users/svonk/Documents/GitHub/openpose/src/openpose
    linked by target "pyopenpose" in directory C:/Users/svonk/Documents/GitHub/openpose/python/openpose
    linked by target "pyopenpose" in directory C:/Users/svonk/Documents/GitHub/openpose/python/openpose
BOOST_SYSTEM_LIB_RELEASE
    linked by target "openpose" in directory C:/Users/svonk/Documents/GitHub/openpose/src/openpose
    linked by target "openpose" in directory C:/Users/svonk/Documents/GitHub/openpose/src/openpose
    linked by target "pyopenpose" in directory C:/Users/svonk/Documents/GitHub/openpose/python/openpose
    linked by target "pyopenpose" in directory C:/Users/svonk/Documents/GitHub/openpose/python/openpose
Caffe_LIB_DEBUG
    linked by target "openpose" in directory C:/Users/svonk/Documents/GitHub/openpose/src/openpose
    linked by target "pyopenpose" in directory C:/Users/svonk/Documents/GitHub/openpose/python/openpose
Caffe_LIB_RELEASE
    linked by target "openpose" in directory C:/Users/svonk/Documents/GitHub/openpose/src/openpose
    linked by target "pyopenpose" in directory C:/Users/svonk/Documents/GitHub/openpose/python/openpose
Caffe_Proto_LIB_DEBUG
    linked by target "openpose" in directory C:/Users/svonk/Documents/GitHub/openpose/src/openpose
    linked by target "pyopenpose" in directory C:/Users/svonk/Documents/GitHub/openpose/python/openpose
Caffe_Proto_LIB_RELEASE
    linked by target "openpose" in directory C:/Users/svonk/Documents/GitHub/openpose/src/openpose
    linked by target "pyopenpose" in directory C:/Users/svonk/Documents/GitHub/openpose/python/openpose
GFLAGS_LIBRARY_DEBUG
    linked by target "openpose" in directory C:/Users/svonk/Documents/GitHub/openpose/src/openpose
    linked by target "pyopenpose" in directory C:/Users/svonk/Documents/GitHub/openpose/python/openpose
GFLAGS_LIBRARY_RELEASE
    linked by target "openpose" in directory C:/Users/svonk/Documents/GitHub/openpose/src/openpose
    linked by target "pyopenpose" in directory C:/Users/svonk/Documents/GitHub/openpose/python/openpose
GLOG_LIBRARY_DEBUG
    linked by target "openpose" in directory C:/Users/svonk/Documents/GitHub/openpose/src/openpose
    linked by target "pyopenpose" in directory C:/Users/svonk/Documents/GitHub/openpose/python/openpose
GLOG_LIBRARY_RELEASE
    linked by target "openpose" in directory C:/Users/svonk/Documents/GitHub/openpose/src/openpose
    linked by target "pyopenpose" in directory C:/Users/svonk/Documents/GitHub/openpose/python/openpose
OpenCV_LIBS_DEBUG
    linked by target "openpose" in directory C:/Users/svonk/Documents/GitHub/openpose/src/openpose
    linked by target "pyopenpose" in directory C:/Users/svonk/Documents/GitHub/openpose/python/openpose
OpenCV_LIBS_RELEASE
    linked by target "openpose" in directory C:/Users/svonk/Documents/GitHub/openpose/src/openpose
    linked by target "pyopenpose" in directory C:/Users/svonk/Documents/GitHub/openpose/python/openpose

I already tried to download both the provided 3rdparty (before 2021 and 2021), getting the same errors.

XeroLen23 avatar Aug 02 '23 09:08 XeroLen23

Hello, I am facing the same problem while installing OpenPose on Windows 11. To solve the problem, you have to manually download and put caffe, caffe3rdparty and opencv in openpose/3rdparty/windows/. However, going forward, CMake will try to download face_model and hand_model and the same error will occur. Last month I installed OpenPose on another laptop, using the same prerequisites I am currently using without any error. It seems that CMake is unable to download dependencies, but we're running two different version of it (3.27 for me).

Hey i am facing the same issue and i have downloaded the models from here and manually added them to folder

#1602

But still i am getting zero person detected with the GPU flag & cuda out of memory for without GPU flag. I have doubled checked the CUDNN 8.5.0 & CUDA 11.7 as suggested.

Really need it done by today, Please anyone can help me out ?

Were you able to build it in Visual Studio without errors? By the way, for Windows 10 and 11 I always use the following configuration:

  • Python 3.7.9
  • Visual Studio Community 2019
  • Cuda 11.1.1_456.81
  • Cudnn 8.7.0.84_cuda11

XeroLen23 avatar Aug 02 '23 10:08 XeroLen23

I was able to fix all the errors and get it working.

After downloading the models and the 3rdparty as reported in #1602, you need to unzip the 3rdparty inside the openpose/3rdparty/windows folder.

With my configuartion I unzipped:

  • caffe_16_2020_11_14.zip
  • caffe3rdparty_16_2020_11_14.zip
  • opencv_450_v15_2020_11_18.zip

XeroLen23 avatar Aug 04 '23 14:08 XeroLen23

I was able to fix all the errors and get it working.

After downloading the models and the 3rdparty as reported in #1602, you need to unzip the 3rdparty inside the openpose/3rdparty/windows folder.

With my configuartion I unzipped:

* caffe_16_2020_11_14.zip

* caffe3rdparty_16_2020_11_14.zip

* opencv_450_v15_2020_11_18.zip

Hello, could you please help me out? I am using a similar set of 3rd party components but I get DLLNotFoundException: openpose error. I've placed models folder with the config that works for me in the root folder.

SashaEm avatar Nov 10 '23 14:11 SashaEm

I was able to fix all the errors and get it working. After downloading the models and the 3rdparty as reported in #1602, you need to unzip the 3rdparty inside the openpose/3rdparty/windows folder. With my configuartion I unzipped:

* caffe_16_2020_11_14.zip

* caffe3rdparty_16_2020_11_14.zip

* opencv_450_v15_2020_11_18.zip

Hello, could you please help me out? I am using a similar set of 3rd party components but I get DLLNotFoundException: openpose error. I've placed models folder with the config that works for me in the root folder.

DId you solved it?I am having the same issue. I unzipped an did all but having same issue.

zainab-saleem avatar Dec 04 '23 15:12 zainab-saleem

I was able to fix all the errors and get it working. After downloading the models and the 3rdparty as reported in #1602, you need to unzip the 3rdparty inside the openpose/3rdparty/windows folder. With my configuartion I unzipped:

* caffe_16_2020_11_14.zip

* caffe3rdparty_16_2020_11_14.zip

* opencv_450_v15_2020_11_18.zip

Hello, could you please help me out? I am using a similar set of 3rd party components but I get DLLNotFoundException: openpose error. I've placed models folder with the config that works for me in the root folder.

DId you solved it?I am having the same issue. I unzipped an did all but having same issue.

Yes, as I said I was able to solve it. Are you using my same configuration in terms of Python, VisualStudio, Cuda, and Cudnn? If you do not have the same configuration, you may need different '3rdparty'.

XeroLen23 avatar Dec 04 '23 16:12 XeroLen23

Hey guys, yesterday I reinstalled OpenPose on another PC and got the same errors. I fixed it by replacing the openpose/3rdparty and openpose/models entirely, which I took from a working installation.

To those who are still struggling, I have created a repo with a direct link to download those dependencies: XeroLen23/OpenPose_dependencies

Just replace the folders entirely, and you should be able to build it.

XeroLen23 avatar Dec 12 '23 09:12 XeroLen23