CMU-Perceptual-Computing-Lab / openpose

OpenPose: Real-time multi-person keypoint detection library for body, face, hands, and foot estimation
https://cmu-perceptual-computing-lab.github.io/openpose
Other
31.21k stars 7.86k forks source link

Google colab helper script #949

Closed sirramsalott closed 5 years ago

sirramsalott commented 5 years ago

Issue Summary

Apologies if this is the wrong place for this. I've made a script to install OpenPose on Google Colab. It's not a particularly exciting piece of programming, but I find it really useful as I don't have access to a computer which is powerful enough to run OpenPose, even in CPU mode, so the only way I can use OpenPose is to build it on a GPU-enabled Colab runtime and then run my programs there. Since I found it really useful, I presume others might also find it useful, so I'm putting it here for developers to do with as they please.

! apt update
! apt install -y cmake sudo libopencv-dev
! git clone https://github.com/CMU-Perceptual-Computing-Lab/openpose.git
! cd openpose/ubuntu && ./install_cmake.sh && ./install_cuda.sh && ./install_cudnn.sh
! cd openpose && git pull origin master && rm -r build || true && mkdir build && cd build && cmake .. && make -j`nproc`

# example demo usage
!cd openpose && ./build/examples/openpose/openpose.bin --video examples/media/video.avi --write_json output/ --display 0 --render_pose 0

Type of Issue

SergeyKalutsky commented 5 years ago

Thanks! you've just saved me a lot of time. That'd be helpful to add in installation section.

AlbanoBorba commented 5 years ago

Thanks for your script, the installation works fine on google colab. However, while executing the example i got the following error:

Starting OpenPose demo...
Configuring OpenPose...
Starting thread(s)...
Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting at GPU 0.
Unable to init server: Could not connect: Connection refused

(OpenPose 1.4.0:20551): Gtk-WARNING **: 16:56:00.904: cannot open display:

Any idea?

yqtl commented 5 years ago

Thanks for your script, the installation works fine on google colab. However, while executing the example i got the following error:

Starting OpenPose demo...
Configuring OpenPose...
Starting thread(s)...
Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting at GPU 0.
Unable to init server: Could not connect: Connection refused

(OpenPose 1.4.0:20551): Gtk-WARNING **: 16:56:00.904: cannot open display:

Any idea?

run with FLAG --display 0

raymanaa commented 5 years ago

That script is a godsend ! Thank you very much, but I'm having a little problem once running it, I read a little bit and it seems to be coming from the caffe library, here's the output (I just added --logging-level 0)

https://pastebin.com/WP2hScGV

and without logging-level :

Starting OpenPose demo...
Configuring OpenPose...
Starting thread(s)...
Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting at GPU 0.
[libprotobuf ERROR google/protobuf/message_lite.cc:118] Can't parse message of type "caffe.NetParameter" because it is missing required fields: layer[0].clip_param.min, layer[0].clip_param.max
F1223 16:17:08.187594 44614 upgrade_proto.cpp:97] Check failed: ReadProtoFromBinaryFile(param_file, param) Failed to parse NetParameter file: models/pose/body_25/pose_iter_584000.caffemodel
*** Check failure stack trace: ***
    @     0x7f909156a0cd  google::LogMessage::Fail()
    @     0x7f909156bf33  google::LogMessage::SendToLog()
    @     0x7f9091569c28  google::LogMessage::Flush()
    @     0x7f909156c999  google::LogMessageFatal::~LogMessageFatal()
    @     0x7f90910fa271  caffe::ReadNetParamsFromBinaryFileOrDie()
    @     0x7f909109211a  caffe::Net<>::CopyTrainedLayersFromBinaryProto()
    @     0x7f909354f517  op::NetCaffe::initializationOnThread()
    @     0x7f9093577943  op::addCaffeNetOnThread()
    @     0x7f9093578e1a  op::PoseExtractorCaffe::netInitializationOnThread()
    @     0x7f909357e523  op::PoseExtractorNet::initializationOnThread()
    @     0x7f9093573a41  op::PoseExtractor::initializationOnThread()
    @     0x7f909356ec71  op::WPoseExtractor<>::initializationOnThread()
    @     0x7f90935af1b1  op::SubThread<>::initializationOnThread()
    @     0x7f90935b2a28  op::Thread<>::initializationOnThread()
    @     0x7f90935b2bf7  op::Thread<>::threadFunction()
    @     0x7f9092a3957f  (unknown)
    @     0x7f9091f406db  start_thread
    @     0x7f909249488f  clone

Any ideas ?

--Edit-- Nevermind, I got it to work using this #799, anyone having the same problem, I just used sed to replace the line inside the CMakeLists.txt, it's a bit hacky but it works. Here's the code just use it and build again.

!sed -i 's/execute_process(COMMAND git checkout master WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}\/3rdparty\/caffe)/execute_process(COMMAND git checkout f019d0dfe86f49d1140961f8c7dec22130c83154 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}\/3rdparty\/caffe)/g' openpose/CMakeLists.txt
rmc7 commented 5 years ago

I install openpose and then replace the line in the CMakeLists.txt with this code but have a same error when running the demo. #799

1.install openpose in colab with GPU ! apt update ! apt install -y cmake sudo libopencv-dev ! git clone https://github.com/CMU-Perceptual-Computing-Lab/openpose.git ! cd openpose/ubuntu && ./install_cmake.sh && ./install_cuda.sh && ./install_cudnn.sh ! cd openpose && git pull origin master && rm -r build || true && mkdir build && cd build && cmake .. && make -jnproc``

2.replace the line in cmakelist !sed -i 's/execute_process(COMMAND git checkout master WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}\/3rdparty\/caffe)/execute_process(COMMAND git checkout f019d0dfe86f49d1140961f8c7dec22130c83154 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}\/3rdparty\/caffe)/g' openpose/CMakeLists.txt

3.after that I want to watch a demo by this. !cd openpose && ./build/examples/openpose/openpose.bin --video examples/media/video.avi --write_json output/ --display 0 --render_pose 0

4.but the same error appears in demo Starting OpenPose demo... Configuring OpenPose... Starting thread(s)... Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting at GPU 0. [libprotobuf ERROR google/protobuf/message_lite.cc:118] Can't parse message of type "caffe.NetParameter" because it is missing required fields: layer[0].clip_param.min, layer[0].clip_param.max F0102 13:57:26.523268 10825 upgrade_proto.cpp:97] Check failed: ReadProtoFromBinaryFile(param_file, param) Failed to parse NetParameter file: models/pose/body_25/pose_iter_584000.caffemodel *** Check failure stack trace: *** @ 0x7f0ef63cf0cd google::LogMessage::Fail() @ 0x7f0ef63d0f33 google::LogMessage::SendToLog() @ 0x7f0ef63cec28 google::LogMessage::Flush() @ 0x7f0ef63d1999 google::LogMessageFatal::~LogMessageFatal() @ 0x7f0ef5f5f271 caffe::ReadNetParamsFromBinaryFileOrDie() @ 0x7f0ef5ef711a caffe::Net<>::CopyTrainedLayersFromBinaryProto() @ 0x7f0ef83b4b47 op::NetCaffe::initializationOnThread() @ 0x7f0ef83dd023 op::addCaffeNetOnThread() @ 0x7f0ef83de4fa op::PoseExtractorCaffe::netInitializationOnThread() @ 0x7f0ef83e3c13 op::PoseExtractorNet::initializationOnThread() @ 0x7f0ef83d9111 op::PoseExtractor::initializationOnThread() @ 0x7f0ef83d4311 op::WPoseExtractor<>::initializationOnThread() @ 0x7f0ef84149d1 op::SubThread<>::initializationOnThread() @ 0x7f0ef8418248 op::Thread<>::initializationOnThread() @ 0x7f0ef8418417 op::Thread<>::threadFunction() @ 0x7f0ef789e57f (unknown) @ 0x7f0ef6da56db start_thread @ 0x7f0ef72f988f clone

how can I deal with..?

raymanaa commented 5 years ago

I install openpose and then replace the line in the CMakeLists.txt with this code but have a same error when running the demo. #799

Before building and using cmake when installing, use the sed command and then build, here's the changes I made (Didn't want to remove anything I just added one line): 1.install openpose in colab with GPU


! apt install -y cmake sudo libopencv-dev
! git clone https://github.com/CMU-Perceptual-Computing-Lab/openpose.git
! cd openpose/ubuntu && ./install_cmake.sh && ./install_cuda.sh && ./install_cudnn.sh
! sed -i 's/execute_process(COMMAND git checkout master WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}\/3rdparty\/caffe)/execute_process(COMMAND git checkout f019d0dfe86f49d1140961f8c7dec22130c83154 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}\/3rdparty\/caffe)/g' openpose/CMakeLists.txt
! cd openpose && git pull origin master && rm -r build || true && mkdir build && cd build && cmake .. && make -j`nproc```
BigTimeStats commented 5 years ago

I install openpose and then replace the line in the CMakeLists.txt with this code but have a same error when running the demo. #799

Before building and using cmake when installing, use the sed command and then build, here's the changes I made (Didn't want to remove anything I just added one line):

1.install openpose in colab with GPU

! apt install -y cmake sudo libopencv-dev
! git clone https://github.com/CMU-Perceptual-Computing-Lab/openpose.git
! cd openpose/ubuntu && ./install_cmake.sh && ./install_cuda.sh && ./install_cudnn.sh
! sed -i 's/execute_process(COMMAND git checkout master WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}\/3rdparty\/caffe)/execute_process(COMMAND git checkout f019d0dfe86f49d1140961f8c7dec22130c83154 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}\/3rdparty\/caffe)/g' openpose/CMakeLists.txt
! cd openpose && git pull origin master && rm -r build || true && mkdir build && cd build && cmake .. && make -j`nproc```

I successfully used your code in Google Colab a few weeks ago, but now when I try to install it again, I get the following errors:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
cmake is already the newest version (3.10.2-1ubuntu2).
sudo is already the newest version (1.8.21p2-3ubuntu1).
libopencv-dev is already the newest version (3.2.0+dfsg-4ubuntu0.1).
0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
Cloning into 'openpose'...
remote: Enumerating objects: 241, done.
remote: Counting objects: 100% (241/241), done.
remote: Compressing objects: 100% (111/111), done.
remote: Total 20388 (delta 145), reused 168 (delta 125), pack-reused 20147
Receiving objects: 100% (20388/20388), 83.67 MiB | 33.33 MiB/s, done.
Resolving deltas: 100% (15935/15935), done.
/bin/bash: line 0: cd: openpose/ubuntu: No such file or directory
From https://github.com/CMU-Perceptual-Computing-Lab/openpose
 * branch              master     -> FETCH_HEAD
Already up to date.
rm: cannot remove 'build': No such file or directory
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- GCC detected, adding compile flags
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found CUDA: /usr/local/cuda (found version "9.2") 
-- Building with CUDA.
-- CUDA detected: 9.2
-- Found cuDNN: ver. 7.4.1 found (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libcudnn.so)
-- Automatic GPU detection failed. Building for all known architectures.
-- Added CUDA NVCC flags for: sm_30 sm_35 sm_37 sm_50 sm_52 sm_53 sm_60 sm_61 sm_62 sm_70 sm_71 sm_72 sm_75
-- Found cuDNN: ver. 7.4.1 found (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libcudnn.so)
-- Could NOT find GFlags (missing: GFLAGS_INCLUDE_DIR GFLAGS_LIBRARY) 
-- Could NOT find Glog (missing: GLOG_INCLUDE_DIR GLOG_LIBRARY) 
CMake Error at /usr/local/lib/python2.7/dist-packages/cmake/data/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find Protobuf (missing: Protobuf_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/local/lib/python2.7/dist-packages/cmake/data/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /usr/local/lib/python2.7/dist-packages/cmake/data/share/cmake-3.12/Modules/FindProtobuf.cmake:543 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:373 (find_package)

-- Configuring incomplete, errors occurred!
See also "/content/openpose/build/CMakeFiles/CMakeOutput.log".
See also "/content/openpose/build/CMakeFiles/CMakeError.log".
kalzor09 commented 5 years ago

I install openpose and then replace the line in the CMakeLists.txt with this code but have a same error when running the demo. #799

Before building and using cmake when installing, use the sed command and then build, here's the changes I made (Didn't want to remove anything I just added one line):

1.install openpose in colab with GPU

! apt install -y cmake sudo libopencv-dev
! git clone https://github.com/CMU-Perceptual-Computing-Lab/openpose.git
! cd openpose/ubuntu && ./install_cmake.sh && ./install_cuda.sh && ./install_cudnn.sh
! sed -i 's/execute_process(COMMAND git checkout master WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}\/3rdparty\/caffe)/execute_process(COMMAND git checkout f019d0dfe86f49d1140961f8c7dec22130c83154 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}\/3rdparty\/caffe)/g' openpose/CMakeLists.txt
! cd openpose && git pull origin master && rm -r build || true && mkdir build && cd build && cmake .. && make -j`nproc```

I successfully used your code in Google Colab a few weeks ago, but now when I try to install it again, I get the following errors:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
cmake is already the newest version (3.10.2-1ubuntu2).
sudo is already the newest version (1.8.21p2-3ubuntu1).
libopencv-dev is already the newest version (3.2.0+dfsg-4ubuntu0.1).
0 upgraded, 0 newly installed, 0 to remove and 13 not upgraded.
Cloning into 'openpose'...
remote: Enumerating objects: 241, done.
remote: Counting objects: 100% (241/241), done.
remote: Compressing objects: 100% (111/111), done.
remote: Total 20388 (delta 145), reused 168 (delta 125), pack-reused 20147
Receiving objects: 100% (20388/20388), 83.67 MiB | 33.33 MiB/s, done.
Resolving deltas: 100% (15935/15935), done.
/bin/bash: line 0: cd: openpose/ubuntu: No such file or directory
From https://github.com/CMU-Perceptual-Computing-Lab/openpose
 * branch              master     -> FETCH_HEAD
Already up to date.
rm: cannot remove 'build': No such file or directory
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- GCC detected, adding compile flags
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found CUDA: /usr/local/cuda (found version "9.2") 
-- Building with CUDA.
-- CUDA detected: 9.2
-- Found cuDNN: ver. 7.4.1 found (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libcudnn.so)
-- Automatic GPU detection failed. Building for all known architectures.
-- Added CUDA NVCC flags for: sm_30 sm_35 sm_37 sm_50 sm_52 sm_53 sm_60 sm_61 sm_62 sm_70 sm_71 sm_72 sm_75
-- Found cuDNN: ver. 7.4.1 found (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libcudnn.so)
-- Could NOT find GFlags (missing: GFLAGS_INCLUDE_DIR GFLAGS_LIBRARY) 
-- Could NOT find Glog (missing: GLOG_INCLUDE_DIR GLOG_LIBRARY) 
CMake Error at /usr/local/lib/python2.7/dist-packages/cmake/data/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find Protobuf (missing: Protobuf_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/local/lib/python2.7/dist-packages/cmake/data/share/cmake-3.12/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /usr/local/lib/python2.7/dist-packages/cmake/data/share/cmake-3.12/Modules/FindProtobuf.cmake:543 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:373 (find_package)

-- Configuring incomplete, errors occurred!
See also "/content/openpose/build/CMakeFiles/CMakeOutput.log".
See also "/content/openpose/build/CMakeFiles/CMakeError.log".

I am facing similar issues.Is there a way to run Open Pose on google collab?

kylemcdonald commented 5 years ago

i made an attempt at running open pose on colab by checking out the specific commit that was probably used at the beginning of this thread, but it didn't work for me:

! apt update
! apt install -y cmake sudo libopencv-dev
! rm -rf openpose
! git clone https://github.com/CMU-Perceptual-Computing-Lab/openpose.git
! cd openpose && git checkout 7ae6a71115763c6df7093e1bd6a72b3fdfe9ff94
! cd openpose/ubuntu && ./install_cmake.sh && ./install_cuda.sh && ./install_cudnn.sh
! sed -i 's/execute_process(COMMAND git checkout master WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}\/3rdparty\/caffe)/execute_process(COMMAND git checkout f019d0dfe86f49d1140961f8c7dec22130c83154 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}\/3rdparty\/caffe)/g' openpose/CMakeLists.txt
! cd openpose && rm -r build || true && mkdir build && cd build && cmake .. && make -j`nproc`

and the error output is:

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:
CUDA_cublas_device_LIBRARY (ADVANCED)
    linked by target "caffe" in directory /content/openpose/3rdparty/caffe/src/caffe

-- Configuring incomplete, errors occurred!
See also "/content/openpose/build/caffe/src/openpose_caffe-build/CMakeFiles/CMakeOutput.log".
See also "/content/openpose/build/caffe/src/openpose_caffe-build/CMakeFiles/CMakeError.log".
CMakeFiles/openpose_caffe.dir/build.make:105: recipe for target 'caffe/src/openpose_caffe-stamp/openpose_caffe-configure' failed
make[2]: *** [caffe/src/openpose_caffe-stamp/openpose_caffe-configure] Error 1
CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/openpose_caffe.dir/all' failed
make[1]: *** [CMakeFiles/openpose_caffe.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
pablobots commented 5 years ago

didn´t work

miu200521358 commented 5 years ago

Nice to meet you. I fixed the script that introduces Openpose in Google Colab. As of March 5, the version of cmake is 3.12, but this version seems to fail to build CUDA 10.

https://developercommunity.visualstudio.com/content/problem/354325/cmake-project-cannot-detect-cuda-10.html

  1. Change the type of runtime to "GPU"
  2. Update cmake
  3. Introducing Openpose

Please try it if you do not mind.

cmake

! wget -c "https://github.com/Kitware/CMake/releases/download/v3.13.4/cmake-3.13.4.tar.gz"
! tar xf cmake-3.13.4.tar.gz
! cd cmake-3.13.4 && ./configure && make && sudo make install

openpose

# ライブラリのインストール

# Basic
! sudo apt-get --assume-yes update
! sudo apt-get --assume-yes install build-essential
# OpenCV
! sudo apt-get --assume-yes install libopencv-dev
# General dependencies
! sudo apt-get --assume-yes install libatlas-base-dev libprotobuf-dev libleveldb-dev libsnappy-dev libhdf5-serial-dev protobuf-compiler
! sudo apt-get --assume-yes install --no-install-recommends libboost-all-dev
# Remaining dependencies, 14.04
! sudo apt-get --assume-yes install libgflags-dev libgoogle-glog-dev liblmdb-dev
# Python2 libs
! sudo apt-get --assume-yes install python-setuptools python-dev build-essential
! sudo easy_install pip
! sudo -H pip install --upgrade numpy protobuf opencv-python
# Python3 libs
! sudo apt-get --assume-yes install python3-setuptools python3-dev build-essential
! sudo apt-get --assume-yes install python3-pip
! sudo -H pip3 install --upgrade numpy protobuf opencv-python
# OpenCV 2.4 -> Added as option
# # sudo apt-get --assume-yes install libopencv-dev
# OpenCL Generic
! sudo apt-get --assume-yes install opencl-headers ocl-icd-opencl-dev
! sudo apt-get --assume-yes install libviennacl-dev

#  Openpose の clone
#! git clone  --depth 1 -b "$ver_openpose" https://github.com/CMU-Perceptual-Computing-Lab/openpose.git 
! git clone  --depth 1 https://github.com/CMU-Perceptual-Computing-Lab/openpose.git     

#  Openpose の モデルデータDL
! cd openpose/models && ./getModels.sh

# Openpose の ビルド
! sed -i 's/execute_process(COMMAND git checkout master WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}\/3rdparty\/caffe)/execute_process(COMMAND git checkout f019d0dfe86f49d1140961f8c7dec22130c83154 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}\/3rdparty\/caffe)/g' openpose/CMakeLists.txt
! cd openpose && rm -r build || true && mkdir build && cd build && cmake .. && make -j`nproc`

# サンプルの実行確認
! cd openpose && ./build/examples/openpose/openpose.bin --video examples/media/video.avi --write_json ./output/ --display 0  --write_video ./output/openpose.avi
tugstugi commented 5 years ago

If someone needs it, I have a prepared a Colab notebook to test OpenPose on YouTube videos: https://colab.research.google.com/github/tugstugi/dl-colab-notebooks/blob/master/notebooks/OpenPose.ipynb

I have also Colab notebooks for AlphaPose and DensePose: https://github.com/tugstugi/dl-colab-notebooks#pose-detection

gineshidalgo99 commented 5 years ago

@sirramsalott I will add this to the doc! I guess I will create a new file (e.g. doc/colab.md) or something like that. Thanks for your contribution!

I will also mention all the other issues/solutions posted here in that same document. Thanks to all.

UPDATED: Added a link from doc/installation.md to this post (to be pushed in the next commit), so everyone can benefit from this. I am closing this then, as it can be accessed from the link in the doc. Thanks again!

arbibz001 commented 5 years ago

Wauw you are the boss!!

edivadiranatnom commented 5 years ago

Is it possible to run it on my macbook webcam instead of videos in Colab?

pamruta commented 5 years ago

Code compiled fine on Google Colab, but at run-time gives following error:

Starting OpenPose demo... Configuring OpenPose... Starting thread(s)...

Error: Cuda check failed (38 vs. 0): no CUDA-capable device is detected

Coming from:

arbibz001 commented 5 years ago

Hi @pamruta ,

Did you change the runtime type of your colab project to GPU? Try to do the following steps: 1) Click on "Runtime" in your colab project on the top bar. 2) Click on "change runtime" and choose GPU under hardware accelator 3) Run the script below: (I edited the script a little bit, by enabling the build_python. This script creates the build python openpose as well)

#install OpenPose
import os
from os.path import exists, join, basename, splitext

git_repo_url = 'https://github.com/CMU-Perceptual-Computing-Lab/openpose.git'
project_name = splitext(basename(git_repo_url))[0]
if not exists(project_name):
  # install new CMake
  !wget -q https://cmake.org/files/v3.13/cmake-3.13.0-Linux-x86_64.tar.gz
  !tar xfz cmake-3.13.0-Linux-x86_64.tar.gz --strip-components=1 -C /usr/local
  # clone openpose git
  !git clone -q --depth 1 $git_repo_url
  !sed -i 's/execute_process(COMMAND git checkout master WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}\/3rdparty\/caffe)/execute_process(COMMAND git checkout f019d0dfe86f49d1140961f8c7dec22130c83154 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}\/3rdparty\/caffe)/g' openpose/CMakeLists.txt
  # install system dependencies and libraries
  !apt-get -qq install -y libatlas-base-dev libprotobuf-dev libleveldb-dev libsnappy-dev libhdf5-serial-dev protobuf-compiler libgflags-dev libgoogle-glog-dev liblmdb-dev opencl-headers ocl-icd-opencl-dev libviennacl-dev
  # install python dependencies
  !pip install -q youtube-dl
  # build openpose
  !cd openpose && rm -rf build || true && mkdir build && cd build && cmake -DBUILD_PYTHON=ON .. && make -j`nproc`

print("installation done")
pamruta commented 5 years ago

Hi @pamruta ,

Did you change the runtime type of your colab project to GPU? Try to do the following steps:

  1. Click on "Runtime" in your colab project on the top bar.
  2. Click on "change runtime" and choose GPU under hardware accelator
  3. Run the script below: (I edited the script a little bit, by enabling the build_python. This script creates the build python openpose as well)
#install OpenPose
import os
from os.path import exists, join, basename, splitext

git_repo_url = 'https://github.com/CMU-Perceptual-Computing-Lab/openpose.git'
project_name = splitext(basename(git_repo_url))[0]
if not exists(project_name):
  # install new CMake
  !wget -q https://cmake.org/files/v3.13/cmake-3.13.0-Linux-x86_64.tar.gz
  !tar xfz cmake-3.13.0-Linux-x86_64.tar.gz --strip-components=1 -C /usr/local
  # clone openpose git
  !git clone -q --depth 1 $git_repo_url
  !sed -i 's/execute_process(COMMAND git checkout master WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}\/3rdparty\/caffe)/execute_process(COMMAND git checkout f019d0dfe86f49d1140961f8c7dec22130c83154 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}\/3rdparty\/caffe)/g' openpose/CMakeLists.txt
  # install system dependencies and libraries
  !apt-get -qq install -y libatlas-base-dev libprotobuf-dev libleveldb-dev libsnappy-dev libhdf5-serial-dev protobuf-compiler libgflags-dev libgoogle-glog-dev liblmdb-dev opencl-headers ocl-icd-opencl-dev libviennacl-dev
  # install python dependencies
  !pip install -q youtube-dl
  # build openpose
  !cd openpose && rm -rf build || true && mkdir build && cd build && cmake -DBUILD_PYTHON=ON .. && make -j`nproc`

print("installation done")

Yes, I forgot to set the runtime type with GPU accelerator.. Finally, got it working..

Here is the output video - https://www.youtube.com/watch?v=eipnXAHasIo

Link to Colab Notebook: http://tiny.cc/9ipm7y

Thanks!

nahilahmed commented 5 years ago

I followed @pamruta s Notebook, But when i try it to run it upon an image it seems to be giving me the error

!cd openpose && ./build/examples/openpose/openpose.bin --image_dir ../ vlcsnap-2016-12-01-23h49m28s384.png

Starting OpenPose demo... Configuring OpenPose... Starting thread(s)... Auto-detecting all available GPUs... Detected 1 GPU(s), using 1 of them starting at GPU 0. Unable to init server: Could not connect: Connection refused

Can anyone like help me? Screenshot (40)

aanexplus commented 5 years ago

Nice to meet you. I fixed the script that introduces Openpose in Google Colab. As of March 5, the version of cmake is 3.12, but this version seems to fail to build CUDA 10.

https://developercommunity.visualstudio.com/content/problem/354325/cmake-project-cannot-detect-cuda-10.html

  1. Change the type of runtime to "GPU"
  2. Update cmake
  3. Introducing Openpose

Please try it if you do not mind.

cmake

! wget -c "https://github.com/Kitware/CMake/releases/download/v3.13.4/cmake-3.13.4.tar.gz"
! tar xf cmake-3.13.4.tar.gz
! cd cmake-3.13.4 && ./configure && make && sudo make install

openpose

# ライブラリのインストール

# Basic
! sudo apt-get --assume-yes update
! sudo apt-get --assume-yes install build-essential
# OpenCV
! sudo apt-get --assume-yes install libopencv-dev
# General dependencies
! sudo apt-get --assume-yes install libatlas-base-dev libprotobuf-dev libleveldb-dev libsnappy-dev libhdf5-serial-dev protobuf-compiler
! sudo apt-get --assume-yes install --no-install-recommends libboost-all-dev
# Remaining dependencies, 14.04
! sudo apt-get --assume-yes install libgflags-dev libgoogle-glog-dev liblmdb-dev
# Python2 libs
! sudo apt-get --assume-yes install python-setuptools python-dev build-essential
! sudo easy_install pip
! sudo -H pip install --upgrade numpy protobuf opencv-python
# Python3 libs
! sudo apt-get --assume-yes install python3-setuptools python3-dev build-essential
! sudo apt-get --assume-yes install python3-pip
! sudo -H pip3 install --upgrade numpy protobuf opencv-python
# OpenCV 2.4 -> Added as option
# # sudo apt-get --assume-yes install libopencv-dev
# OpenCL Generic
! sudo apt-get --assume-yes install opencl-headers ocl-icd-opencl-dev
! sudo apt-get --assume-yes install libviennacl-dev

#  Openpose の clone
#! git clone  --depth 1 -b "$ver_openpose" https://github.com/CMU-Perceptual-Computing-Lab/openpose.git 
! git clone  --depth 1 https://github.com/CMU-Perceptual-Computing-Lab/openpose.git     

#  Openpose の モデルデータDL
! cd openpose/models && ./getModels.sh

# Openpose の ビルド
! sed -i 's/execute_process(COMMAND git checkout master WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}\/3rdparty\/caffe)/execute_process(COMMAND git checkout f019d0dfe86f49d1140961f8c7dec22130c83154 WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}\/3rdparty\/caffe)/g' openpose/CMakeLists.txt
! cd openpose && rm -r build || true && mkdir build && cd build && cmake .. && make -j`nproc`

# サンプルの実行確認
! cd openpose && ./build/examples/openpose/openpose.bin --video examples/media/video.avi --write_json ./output/ --display 0  --write_video ./output/openpose.avi

Hi, Can I install OpenPose to a mounted Gdrive? I tried this but I got some errors. I want to know if you've tried this before. Thank you

tienthegainz commented 5 years ago

I want to import pyopenpose as well. Any idea? Anw thanks man. That saved me lots of time.

abhiverma1924 commented 5 years ago

If someone needs it, I have a prepared a Colab notebook to test OpenPose on YouTube videos: https://colab.research.google.com/github/tugstugi/dl-colab-notebooks/blob/master/notebooks/OpenPose.ipynb

I have also Colab notebooks for AlphaPose and DensePose: https://github.com/tugstugi/dl-colab-notebooks#pose-detection

Yes, your script is working, but I want to obtain pose coordinates can be obtained that by working further on your code.

pra-dan commented 5 years ago

If you need the coordinates, follow this. I managed to do it: https://github.com/PrashantDandriyal/Heuristic-Approach-for-HAR/pull/1 Prashant Dandriyal

On Mon, Sep 30, 2019 at 12:07 AM Abhinav verma notifications@github.com wrote:

If someone needs it, I have a prepared a Colab notebook to test OpenPose on YouTube videos: https://colab.research.google.com/github/tugstugi/dl-colab-notebooks/blob/master/notebooks/OpenPose.ipynb

I have also Colab notebooks for AlphaPose and DensePose: https://github.com/tugstugi/dl-colab-notebooks#pose-detection

Yes, your script is working, but I want to obtain pose coordinates can be obtained that by working further on your code.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/CMU-Perceptual-Computing-Lab/openpose/issues/949?email_source=notifications&email_token=ALC73KLRZY7YRICT7I4PKK3QMDYV7A5CNFSM4GIMVC42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD733VVQ#issuecomment-536328918, or mute the thread https://github.com/notifications/unsubscribe-auth/ALC73KIHYCIMBXBGMSGC43TQMDYV7ANCNFSM4GIMVC4Q .

abhiverma1924 commented 5 years ago

If you need the coordinates, follow this. I managed to do it: PrashantDandriyal/Heuristic-Approach-for-HAR#1 Prashant Dandriyal On Mon, Sep 30, 2019 at 12:07 AM Abhinav verma @.***> wrote: If someone needs it, I have a prepared a Colab notebook to test OpenPose on YouTube videos: https://colab.research.google.com/github/tugstugi/dl-colab-notebooks/blob/master/notebooks/OpenPose.ipynb I have also Colab notebooks for AlphaPose and DensePose: https://github.com/tugstugi/dl-colab-notebooks#pose-detection Yes, your script is working, but I want to obtain pose coordinates can be obtained that by working further on your code. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#949?email_source=notifications&email_token=ALC73KLRZY7YRICT7I4PKK3QMDYV7A5CNFSM4GIMVC42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD733VVQ#issuecomment-536328918>, or mute the thread https://github.com/notifications/unsubscribe-auth/ALC73KIHYCIMBXBGMSGC43TQMDYV7ANCNFSM4GIMVC4Q .

So, which process we should follow in order to run your code, for the installation and building of tf-pose. I am facing a problem there.

pra-dan commented 5 years ago

Kindly follow the steps here: https://medium.com/analytics-vidhya/heuristics-for-har-a-divergent-approach-part-i-36292f0bf85e

and after this compile older (first or second) branches of my repo here: https://github.com/PrashantDandriyal/Heuristic-Approach-for-HAR Prashant Dandriyal

On Mon, Sep 30, 2019 at 11:24 AM Abhinav verma notifications@github.com wrote:

If you need the coordinates, follow this. I managed to do it: PrashantDandriyal/Heuristic-Approach-for-HAR#1 https://github.com/PrashantDandriyal/Heuristic-Approach-for-HAR/pull/1 Prashant Dandriyal … <#m-1946382964577755173> On Mon, Sep 30, 2019 at 12:07 AM Abhinav verma @.***> wrote: If someone needs it, I have a prepared a Colab notebook to test OpenPose on YouTube videos: https://colab.research.google.com/github/tugstugi/dl-colab-notebooks/blob/master/notebooks/OpenPose.ipynb I have also Colab notebooks for AlphaPose and DensePose: https://github.com/tugstugi/dl-colab-notebooks#pose-detection Yes, your script is working, but I want to obtain pose coordinates can be obtained that by working further on your code. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#949 https://github.com/CMU-Perceptual-Computing-Lab/openpose/issues/949?email_source=notifications&email_token=ALC73KLRZY7YRICT7I4PKK3QMDYV7A5CNFSM4GIMVC42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD733VVQ#issuecomment-536328918>, or mute the thread https://github.com/notifications/unsubscribe-auth/ALC73KIHYCIMBXBGMSGC43TQMDYV7ANCNFSM4GIMVC4Q .

So, which process we should follow in order to run your code, for the installation and building of tf-pose. I am facing a problem there.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/CMU-Perceptual-Computing-Lab/openpose/issues/949?email_source=notifications&email_token=ALC73KKFVRINMNM3QIPSIOLQMGH7VA5CNFSM4GIMVC42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD74P54Y#issuecomment-536411891, or mute the thread https://github.com/notifications/unsubscribe-auth/ALC73KN4SJPHCGBKUFMWEH3QMGH7VANCNFSM4GIMVC4Q .

aimanraza commented 4 years ago

I want to import pyopenpose as well. Any idea? Anw thanks man. That saved me lots of time.

Did you managed to solve this problem? Can u help me. I am also facing the same issue.

cperbost commented 4 years ago

@PrashantDandriyal Did you create a collab to get the coordinates? I am struggling with it

pra-dan commented 4 years ago

@cperbost In the estimator.py, if you see the part from line 412 to 486, you will be able to obtain the coordinates. The coordinates are stored in the list xlist and ylist and their names are stored separately in 433 - 452. For some of the parts like the nose, I have added a command like : nose = (xlist[0],ylist[0]) Hope it helps!

juanmaceg commented 4 years ago

Hi everyone,

I have a problem that can't solve and it's quite important because i'm finishing an important proyect that needs to be done by June.

If someone needs it, I have a prepared a Colab notebook to test OpenPose on YouTube videos: https://colab.research.google.com/github/tugstugi/dl-colab-notebooks/blob/master/notebooks/OpenPose.ipynb

I have also Colab notebooks for AlphaPose and DensePose: https://github.com/tugstugi/dl-colab-notebooks#pose-detection

Executing this code I get an issue taht says:

Submodule '3rdparty/caffe' (https://github.com/CMU-Perceptual-Computing-Lab/caffe.git) registered for path '../3rdparty/caffe' Cloning into '/content/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

That happened today because yesterday it was working right, if anyone can solve that i would be really happy. Thank you.

pra-dan commented 4 years ago

I suppose you clone the repo just like you do git clone .... and just then/next checkout to the recent version using git checkout c95002fb

juanmaceg commented 4 years ago

I suppose you clone the repo just like you do git clone .... and just then/next checkout to the recent version using git checkout c95002fb

I have donde this, but still doesn't work !git clone -q --depth 1 $git_repo_url !git checkout c95002fb

pra-dan commented 4 years ago

@juanmaceg Why don't you setup another related project for similar purpose ? I tried to implement HAR using another repo. I explained it here: Hope it helps https://medium.com/analytics-vidhya/heuristics-for-har-a-divergent-approach-part-i-36292f0bf85e

cperbost commented 4 years ago

Hi guys, the collab doesn't seem to be working anymore (i have been using it for a few months now, but I just get an error now when I install openpose). I get this : CMake Error at cmake/Utils.cmake:8 (file): file DOWNLOAD HASH mismatch

for file: [/content/openpose/models/hand/pose_iter_102000.caffemodel]
  expected hash: [a82cfc3fea7c62f159e11bd3674c1531]
    actual hash: [d41d8cd98f00b204e9800998ecf8427e]
         status: [22;"HTTP response code said error"]

Any idea ?

Tejas-Suvarna commented 4 years ago

Hi guys, the collab doesn't seem to be working anymore (i have been using it for a few months now, but I just get an error now when I install openpose). I get this : CMake Error at cmake/Utils.cmake:8 (file): file DOWNLOAD HASH mismatch

for file: [/content/openpose/models/hand/pose_iter_102000.caffemodel]
  expected hash: [a82cfc3fea7c62f159e11bd3674c1531]
    actual hash: [d41d8cd98f00b204e9800998ecf8427e]
         status: [22;"HTTP response code said error"]

Any idea ?

Even I am trying the same for a few days. The original notebook was written in 2018 ad it's been a long time and there has been a lot of modifications on Openpose, so I think the notebook doesn't work.

Tejas-Suvarna commented 4 years ago

If someone needs it, I have a prepared a Colab notebook to test OpenPose on YouTube videos: https://colab.research.google.com/github/tugstugi/dl-colab-notebooks/blob/master/notebooks/OpenPose.ipynb

I have also Colab notebooks for AlphaPose and DensePose: https://github.com/tugstugi/dl-colab-notebooks#pose-detection

Hello, your notebook for Openpose was really great. But unfortunately, after the update, it stopped working, can you try to figure out what can be done to it. Thank you.

miu200521358 commented 4 years ago

Hi everyone, I recreated Colab Notebook for Openpose 1.6.0. First, change "Runtime type" to "GPU". After that, if you can execute "Run all cells" in Colab, you can even analyze Openopse demo video.

https://colab.research.google.com/github/miu200521358/motion_trace_colab/blob/master/Openpose1_6_0.ipynb

Tejas-Suvarna commented 4 years ago

Hi everyone, I recreated Colab Notebook for Openpose 1.6.0. First, change "Runtime type" to "GPU". After that, if you can execute "Run all cells" in Colab, you can even analyze Openopse demo video.

https://colab.research.google.com/github/miu200521358/motion_trace_colab/blob/master/Openpose1_6_0.ipynb

OMG. You are a lifesaver. Thank you so much for this.

ammaddd commented 4 years ago

Hi everyone, I recreated Colab Notebook for Openpose 1.6.0. First, change "Runtime type" to "GPU". After that, if you can execute "Run all cells" in Colab, you can even analyze Openopse demo video.

https://colab.research.google.com/github/miu200521358/motion_trace_colab/blob/master/Openpose1_6_0.ipynb

I am getting this error Error: OpenPose library could not be found. Did you enable BUILD_PYTHON in CMake and have this Python script in the right folder?

miu200521358 commented 4 years ago

Are you trying to use the "Python API"? CMake builds do not seem to build the Python API by default.

Pybind selects the latest version of Python by default (Python 3). To use Python 2, change PYTHON_EXECUTABLE and PYTHON_LIBRARY flags in CMake-gui to your desired Python version.

https://github.com/CMU-Perceptual-Computing-Lab/openpose/blob/master/doc/modules/python_module.md

ammaddd commented 4 years ago

Are you trying to use the "Python API"? CMake builds do not seem to build the Python API by default.

Pybind selects the latest version of Python by default (Python 3). To use Python 2, change PYTHON_EXECUTABLE and PYTHON_LIBRARY flags in CMake-gui to your desired Python version.

https://github.com/CMU-Perceptual-Computing-Lab/openpose/blob/master/doc/modules/python_module.md

Thank you for response. Can you explain more? I want to use latest python installed. I am running the on Colab the same script (did you tested it) and i end up with this error when i test an example. Error comes at this line sys.path.append('../../python'); from openpose import pyopenpose as op

miu200521358 commented 4 years ago

Is it possible to share a notebook? If you let me see what you did, I might be able to give you some advice. Alternatively, I think resetting the runtime and then starting over again is one way.

ammaddd commented 4 years ago

Is it possible to share a notebook? If you let me see what you did, I might be able to give you some advice. Alternatively, I think resetting the runtime and then starting over again is one way.

It has your same notebook commands. I tried it multiple times but same error. I will try it once more with that BUILD argument. Lets see will update you.

openpose.zip

miu200521358 commented 4 years ago

Thank you for sharing. From what I have seen, it seems that a command different from the one I uploaded is being executed.

The command I wrote

! cd openpose && ./build/examples/openpose/openpose.bin --video examples/media/video.avi --display 0  --write_video ./output/openpose.avi

The command you executed

! cd openpose && python3 examples/tutorial_api_python/02_whole_body_from_image.py

The command you executed uses Opnepose's Python API. I'm not familiar with the Python API, but as I mentioned, it doesn't seem to be built by default. It seems that I can't use the Python API as it is in my notebook. To make it available, please refer to the URL above. I am sorry that I can not be a help.

ammaddd commented 4 years ago

Thank you for sharing. From what I have seen, it seems that a command different from the one I uploaded is being executed.

The command I wrote

! cd openpose && ./build/examples/openpose/openpose.bin --video examples/media/video.avi --display 0  --write_video ./output/openpose.avi

The command you executed

! cd openpose && python3 examples/tutorial_api_python/02_whole_body_from_image.py

The command you executed uses Opnepose's Python API. I'm not familiar with the Python API, but as I mentioned, it doesn't seem to be built by default. It seems that I can't use the Python API as it is in my notebook. To make it available, please refer to the URL above. I am sorry that I can not be a help.

Thanks anyways i know the issue. Will try to find the solution now

miu200521358 commented 4 years ago

Hi. BANANAPEEL202. Thank you for trying my Colab script! Added cells with number_people_max option. Incidentally, I also prepared optional additional cells for hand and face. Please try if you like.

kruthikakr commented 4 years ago

Hi everyone, I recreated Colab Notebook for Openpose 1.6.0. First, change "Runtime type" to "GPU". After that, if you can execute "Run all cells" in Colab, you can even analyze Openopse demo video.

https://colab.research.google.com/github/miu200521358/motion_trace_colab/blob/master/Openpose1_6_0.ipynb

Facing same issue.. Any fix for this

EtiReznikov commented 4 years ago

Hi, I am using colab for a few months and in the last days I'm facing this error when running in colab:

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

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: [/content/openpose/models/face/pose_iter_116000.caffemodel]
  expected hash: [e747180d728fa4e4418c465828384333]
    actual hash: [d41d8cd98f00b204e9800998ecf8427e]
         status: [7;"Couldn't connect to server"]

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: [/content/openpose/models/hand/pose_iter_102000.caffemodel]
  expected hash: [a82cfc3fea7c62f159e11bd3674c1531]
    actual hash: [d41d8cd98f00b204e9800998ecf8427e]
         status: [7;"Couldn't connect to server"]

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

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

Did you change something in the models like their paths? How can i fix this problem? Thank you

sergak0 commented 4 years ago

I have the same problem, when I am running it on colab : Have anyone solved this error?

Hi, im using colab for a few months and in the last days I'm facing this error when running in colab:

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

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: [/content/openpose/models/face/pose_iter_116000.caffemodel]
  expected hash: [e747180d728fa4e4418c465828384333]
    actual hash: [d41d8cd98f00b204e9800998ecf8427e]
         status: [7;"Couldn't connect to server"]

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: [/content/openpose/models/hand/pose_iter_102000.caffemodel]
  expected hash: [a82cfc3fea7c62f159e11bd3674c1531]
    actual hash: [d41d8cd98f00b204e9800998ecf8427e]
         status: [7;"Couldn't connect to server"]

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

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

Did you change something in the models like their paths? How can i fix this problem? Thank you

NusaibaNizam commented 4 years ago

Hi, im using colab for a few months and in the last days I'm facing this error when running in colab:

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

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: [/content/openpose/models/face/pose_iter_116000.caffemodel]
  expected hash: [e747180d728fa4e4418c465828384333]
    actual hash: [d41d8cd98f00b204e9800998ecf8427e]
         status: [7;"Couldn't connect to server"]

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: [/content/openpose/models/hand/pose_iter_102000.caffemodel]
  expected hash: [a82cfc3fea7c62f159e11bd3674c1531]
    actual hash: [d41d8cd98f00b204e9800998ecf8427e]
         status: [7;"Couldn't connect to server"]

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

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

Did you change something in the models like their paths? How can i fix this problem? Thank you

having the same problem

Egna-Praneeth commented 4 years ago

https://github.com/CMU-Perceptual-Computing-Lab/openpose/issues/1224#issuecomment-678727906 This solved the above issue (download hash mismatch) Download the openpose models from here : https://www.kaggle.com/changethetuneman/openpose-model?select=pose_iter_584000.caffemodel .Move them to the correct location.

The correct locations according to https://github.com/CMU-Perceptual-Computing-Lab/openpose/blob/master/doc/prerequisites.md are:

Even this must work https://github.com/CMU-Perceptual-Computing-Lab/openpose/issues/1602#issuecomment-641653411