Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails - file DOWNLOAD HASH mismatch Ubuntu #1224

Closed
peteruhrig opened this issue May 16, 2019 · 12 comments
Closed

Build fails - file DOWNLOAD HASH mismatch Ubuntu #1224

peteruhrig opened this issue May 16, 2019 · 12 comments
Labels
duplicate This issue or pull request already exists help wanted/question Extra attention is needed

Comments

@peteruhrig
Copy link

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)

-- 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

@gineshidalgo99
Copy link
Member

gineshidalgo99 commented May 16, 2019

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.

@gineshidalgo99 gineshidalgo99 added duplicate This issue or pull request already exists help wanted/question Extra attention is needed labels May 16, 2019
@peteruhrig
Copy link
Author

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.

@gineshidalgo99
Copy link
Member

gineshidalgo99 commented May 16, 2019

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

@mdmorar
Copy link

mdmorar commented Jun 5, 2020

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".

@VCucuiat
Copy link

VCucuiat commented Jun 8, 2020

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

@Jasonnor
Copy link

Jasonnor commented Jun 9, 2020

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

@kruthikakr
Copy link

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 ?

@VMarsocci
Copy link

VMarsocci commented Aug 21, 2020

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

@litcoderr
Copy link

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

@FelipeMolinaB
Copy link

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

@BANANAPEEL202
Copy link

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: #1588

@BANANAPEEL202
Copy link

BANANAPEEL202 commented Aug 23, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists help wanted/question Extra attention is needed
Projects
None yet
Development

No branches or pull requests

10 participants