Openpose: Build fails - file DOWNLOAD HASH mismatch Ubuntu

Created on 16 May 2019  路  12Comments  路  Source: CMU-Perceptual-Computing-Lab/openpose

Issue Summary

CMAKE appears to fail because the downloaded file does not match the one expected.

Executed Command (if any)

Note: add --logging_level 0 --disable_multi_thread to get higher debug information.
cmake ..

Errors (if any)

```-- 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: [/openpose/models/pose/body_25/pose_iter_584000.caffemodel]
  expected hash: [78287b57cf85fa89c03f1393d368e5b7]
    actual hash: [d41d8cd98f00b204e9800998ecf8427e]
         status: [56;"Failure when receiving data from the peer"]

Call Stack (most recent call first):
CMakeLists.txt:969 (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: [/openpose/models/face/pose_iter_116000.caffemodel]
  expected hash: [e747180d728fa4e4418c465828384333]
    actual hash: [d41d8cd98f00b204e9800998ecf8427e]
         status: [56;"Failure when receiving data from the peer"]

Call Stack (most recent call first):
CMakeLists.txt:975 (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: [/openpose/models/hand/pose_iter_102000.caffemodel]
  expected hash: [a82cfc3fea7c62f159e11bd3674c1531]
    actual hash: [d41d8cd98f00b204e9800998ecf8427e]
         status: [56;"Failure when receiving data from the peer"]

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

-- Models Downloaded.
```

Interestingly, if I run cmake again, it does not check, it just says file "-- Model already exists."

Type of Issue

  • Compilation/installation error

Your System Configuration

  1. Whole console output (if errors appeared), paste the error to PasteBin and then paste the link here: https://pastebin.com/WLkKhsKh

  2. OpenPose version: Latest GitHub code.

  3. General configuration:

    • Installation mode: (Ubuntu); CMake, ...
    • Operating system (lsb_release -a in Ubuntu): Ubuntu 16.04 LTS
    • Operating system version (e.g., Ubuntu 16, Windows 10, ...): Ubuntu 16.04 LTS
    • Release or Debug mode? (by default: release): [have not changed anything]
    • Compiler (gcc --version in Ubuntu or VS version in Windows): gcc 5.4.0
  4. Non-default settings:

    • 3-D Reconstruction module added? (by default: no): no
    • Any other custom CMake configuration with respect to the default version? (by default: no): no
  5. 3rd-party software:

    • Caffe version: Default from OpenPose
    • CMake version (cmake --version in Ubuntu): 3.5.1
    • OpenCV version: pre-compiled apt-get install libopencv-dev (only Ubuntu);
  6. If GPU mode issue:

    • CUDA version (cat /usr/local/cuda/version.txt in most cases): 10.0.130
    • cuDNN version: 7.5.1
    • GPU model (nvidia-smi in Ubuntu): various, in this case 4x GTX 1080 Ti

I have attached the CMakeError.log, but it only mentions something about pthread.

All the best,
Peter

duplicate help wantequestion

Most helpful comment

Hi Guys,

Want to reopen this because I'm getting the exact same error and was not getting this about a month ago when I was installing the latest master then. Currently the v1.6 release just got done so im basically updating my project on a Nvidia TX2 which was working fine with the previous master, but now i get the exact error during the models download.

I am on the internet, so this must be a mistmatch error of sorts with hashcodes? Not exactly sure but have never seen this error before. Please assist.

I'm not sure this is an internet issue since I'm on the hard wired network and my internet is fine? Its still doing the same exact thing?

-- Caffe will be downloaded from source now. NOTE: This process might take several minutes depending
        on your internet connection.
Submodule '3rdparty/caffe' (https://github.com/CMU-Perceptual-Computing-Lab/caffe.git) registered for path '../3rdparty/caffe'
Cloning into '/home/nvidia/datacapture/openpose/3rdparty/caffe'...
Submodule path '../3rdparty/caffe': checked out 'b5ede488952e40861e84e51a9f9fd8fe2395cc8a'
Previous HEAD position was b5ede488 Added TX2 JetPack3.3 support
HEAD is now at c95002fb Added support for newer GPUs
-- Caffe will be built from source now.
-- 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: [/home/nvidia/datacapture/openpose/models/pose/body_25/pose_iter_584000.caffemodel]
      expected hash: [78287b57cf85fa89c03f1393d368e5b7]
        actual hash: [d41d8cd98f00b204e9800998ecf8427e]
             status: [22;"HTTP response code said error"]

Call Stack (most recent call first):
  CMakeLists.txt:993 (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: [/home/nvidia/datacapture/openpose/models/face/pose_iter_116000.caffemodel]
      expected hash: [e747180d728fa4e4418c465828384333]
        actual hash: [d41d8cd98f00b204e9800998ecf8427e]
             status: [22;"HTTP response code said error"]

Call Stack (most recent call first):
  CMakeLists.txt:999 (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: [/home/nvidia/datacapture/openpose/models/hand/pose_iter_102000.caffemodel]
      expected hash: [a82cfc3fea7c62f159e11bd3674c1531]
        actual hash: [d41d8cd98f00b204e9800998ecf8427e]
             status: [22;"HTTP response code said error"]

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


-- Models Downloaded.
-- Configuring incomplete, errors occurred!
See also "/home/nvidia/datacapture/openpose/build/CMakeFiles/CMakeOutput.log".
See also "/home/nvidia/datacapture/openpose/build/CMakeFiles/CMakeError.log".

All 12 comments

You are facing an Internet issue. The error you displayed especifically says: "Failure when receiving data from the peer". That means it could not download it. Please, try again in a few minutes or manually download them following the doc. Thanks.

Ah, thanks. You are right, the file is 0 bytes. But it went to on to build after that and even executes and says it finished successfully, but the output json's do not contain coordinates.

Yes, that's a Caffe issue, if the model is not the right size (even if it's half the supposed size, e.g., if the download interrupts), then it just outputs 0, without crashing not complaining, that's why OpenPose then predicts 0 people all the time with any image.

With the right models, it will work

Hi Guys,

Want to reopen this because I'm getting the exact same error and was not getting this about a month ago when I was installing the latest master then. Currently the v1.6 release just got done so im basically updating my project on a Nvidia TX2 which was working fine with the previous master, but now i get the exact error during the models download.

I am on the internet, so this must be a mistmatch error of sorts with hashcodes? Not exactly sure but have never seen this error before. Please assist.

I'm not sure this is an internet issue since I'm on the hard wired network and my internet is fine? Its still doing the same exact thing?

-- Caffe will be downloaded from source now. NOTE: This process might take several minutes depending
        on your internet connection.
Submodule '3rdparty/caffe' (https://github.com/CMU-Perceptual-Computing-Lab/caffe.git) registered for path '../3rdparty/caffe'
Cloning into '/home/nvidia/datacapture/openpose/3rdparty/caffe'...
Submodule path '../3rdparty/caffe': checked out 'b5ede488952e40861e84e51a9f9fd8fe2395cc8a'
Previous HEAD position was b5ede488 Added TX2 JetPack3.3 support
HEAD is now at c95002fb Added support for newer GPUs
-- Caffe will be built from source now.
-- 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: [/home/nvidia/datacapture/openpose/models/pose/body_25/pose_iter_584000.caffemodel]
      expected hash: [78287b57cf85fa89c03f1393d368e5b7]
        actual hash: [d41d8cd98f00b204e9800998ecf8427e]
             status: [22;"HTTP response code said error"]

Call Stack (most recent call first):
  CMakeLists.txt:993 (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: [/home/nvidia/datacapture/openpose/models/face/pose_iter_116000.caffemodel]
      expected hash: [e747180d728fa4e4418c465828384333]
        actual hash: [d41d8cd98f00b204e9800998ecf8427e]
             status: [22;"HTTP response code said error"]

Call Stack (most recent call first):
  CMakeLists.txt:999 (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: [/home/nvidia/datacapture/openpose/models/hand/pose_iter_102000.caffemodel]
      expected hash: [a82cfc3fea7c62f159e11bd3674c1531]
        actual hash: [d41d8cd98f00b204e9800998ecf8427e]
             status: [22;"HTTP response code said error"]

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


-- Models Downloaded.
-- Configuring incomplete, errors occurred!
See also "/home/nvidia/datacapture/openpose/build/CMakeFiles/CMakeOutput.log".
See also "/home/nvidia/datacapture/openpose/build/CMakeFiles/CMakeError.log".

Hi,
I'm facing the same issue with downloading the models for Open Pose. I wondered if you got any further with your error?

Same issue here, error log:

Cloning into '3rdparty/caffe'...
Submodule path '../3rdparty/caffe': checked out 'b5ede488952e40861e84e51a9f9fd8fe2395cc8a'
Previous HEAD position was b5ede48... Added TX2 JetPack3.3 support
HEAD is now at c95002f... Added support for newer GPUs
-- Caffe will be built from source now.
-- 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

Previous HEAD position was b5ede488 Added TX2 JetPack3.3 support
HEAD is now at c95002fb Added support for newer GPUs
-- Caffe will be built from source now.
-- 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: [/content/openpose/models/pose/body_25/pose_iter_584000.caffemodel]
  expected hash: [78287b57cf85fa89c03f1393d368e5b7]
    actual hash: [d41d8cd98f00b204e9800998ecf8427e]
         status: [7;"Couldn't connect to server"]

Again the hitting the same issue..
Using this colab https://colab.research.google.com/github/miu200521358/motion_trace_colab/blob/master/Openpose1_6_0.ipynb?authuser=1#scrollTo=bhCJ4zsf2AMa
Any leads ?

Previous HEAD position was b5ede488 Added TX2 JetPack3.3 support
HEAD is now at c95002fb Added support for newer GPUs
-- Caffe will be built from source now.
-- 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: [/content/openpose/models/pose/body_25/pose_iter_584000.caffemodel]
  expected hash: [78287b57cf85fa89c03f1393d368e5b7]
    actual hash: [d41d8cd98f00b204e9800998ecf8427e]
         status: [7;"Couldn't connect to server"]

Again the hitting the same issue..
Using this colab https://colab.research.google.com/github/miu200521358/motion_trace_colab/blob/master/Openpose1_6_0.ipynb?authuser=1#scrollTo=bhCJ4zsf2AMa
Any leads ?

Same issue here, using this colab OpenPose Colab

I have the same issue.

  • This is my Dockerfile
FROM nvidia/cuda:10.0-cudnn7-devel-ubuntu16.04

RUN echo "Installing dependencies..." && \
    apt-get -y --no-install-recommends update && \
    apt-get -y --no-install-recommends upgrade && \
    apt-get install -y --no-install-recommends \
    build-essential \
    cmake \
    git \
    libatlas-base-dev \
    libprotobuf-dev \
    libleveldb-dev \
    libsnappy-dev \
    libhdf5-serial-dev \
    protobuf-compiler \
    libboost-all-dev \
    libgflags-dev \
    libgoogle-glog-dev \
    liblmdb-dev \
    pciutils \
    python3-setuptools \
    python3-dev \
    python3-pip \
    opencl-headers \
    ocl-icd-opencl-dev \
    libviennacl-dev \
    libcanberra-gtk-module \
    libopencv-dev && \
    python3 -m pip install --upgrade pip && \   
    python3 -m pip install \
    numpy \
    protobuf \
    opencv-python

RUN echo "Downloading and building OpenPose..." && \
    git clone https://github.com/CMU-Perceptual-Computing-Lab/openpose.git && \
    cd openpose/3rdparty && \
    git clone https://github.com/CMU-Perceptual-Computing-Lab/caffe && \
    cd ../ && \
    mkdir build && \
    cd build && \
    cmake .. && \
    make -j4 && \
    make install && \
    cd ..

WORKDIR /pose_extractor/script
ENTRYPOINT bash ./preprocess.bash
  • This is the error that i've got

image
image

Think we have the same issue 馃槆 Please help Thx

Hi there,

I'm facing the same issue as @litcoderr with all the openpose models, it seems the links are broken. I was wondering if there is any solution

I'm using Docker File from cwaffles/openpose.

Thanks

Previous HEAD position was b5ede488 Added TX2 JetPack3.3 support
HEAD is now at c95002fb Added support for newer GPUs
-- Caffe will be built from source now.
-- 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: [/content/openpose/models/pose/body_25/pose_iter_584000.caffemodel]
  expected hash: [78287b57cf85fa89c03f1393d368e5b7]
    actual hash: [d41d8cd98f00b204e9800998ecf8427e]
         status: [7;"Couldn't connect to server"]

Again the hitting the same issue..
Using this colab https://colab.research.google.com/github/miu200521358/motion_trace_colab/blob/master/Openpose1_6_0.ipynb?authuser=1#scrollTo=bhCJ4zsf2AMa
Any leads ?

same here. i found that running "! cd openpose && mkdir build && cd build" and "! cd openpose/build && cmake .. " twice gets rid of the issue but it doesn't download the models and openpose doesn't detect any people. I'm trying to see if the fix suggested in this thread will work: https://github.com/CMU-Perceptual-Computing-Lab/openpose/issues/1588

Yup the solution in #1588 works!!! Download the models (https://www.kaggle.com/changethetuneman/openpose-model?select=pose_iter_584000.caffemodel) from kaggle and then move them to the correct location in openpose/models/.... Its a bit of a pain but at least it will work until a permanent fix is introduced hopefully

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zhixuanli picture zhixuanli  路  3Comments

ieyer picture ieyer  路  5Comments

ran2207 picture ran2207  路  3Comments

RuWang15 picture RuWang15  路  4Comments

Bardo91 picture Bardo91  路  3Comments