openpose icon indicating copy to clipboard operation
openpose copied to clipboard

I can't install openpose in colab;;

Open Choin72 opened this issue 11 months ago • 12 comments

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

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

install new CMake becaue of CUDA10

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

!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 -jnproc !mkdir openpose/images openpose/videos

I ran this code using the V100 GPU provided by colab in a Windows 11 this code is from https://colab.research.google.com/github/Kasidit0052/MatchingOpenpose/blob/main/OpenPose.ipynb#scrollTo=FOdkDhb6ga6N in 'Install Openpose'

but I got the error message like this

-- 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: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: [/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: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: [/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:993 (download_model)

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

There seems to be a problem with the server downloading the model image

I can only use colab, so I hope this server problem will be solved as soon as possible. can anyone help with this problem?

Choin72 avatar Aug 05 '23 05:08 Choin72

I have the same problem. Help please 🙏

shirsneh avatar Aug 14 '23 13:08 shirsneh

I am also encountering the same error. Help is much appreciated...

alvaro-budria avatar Aug 22 '23 15:08 alvaro-budria

It seems to be a recent error, and I have also encountered it. I guess that some resource links have become invalid.

yujvv avatar Sep 06 '23 01:09 yujvv

@alvaro-budria & @yujvv did you find any solutions to run openpose in google collab? I get the same error from a few weeks and I cannot use it anymore... thanks!

AlmaDev40 avatar Sep 24 '23 07:09 AlmaDev40

anyone figure out this issue ?

pkudzia avatar Oct 02 '23 20:10 pkudzia

@shirsneh @yujvv @AlmaDev40 @pkudzia I put together a Colab that installs OpenPose and circumvents the issue. It's divided in two parts, only the first part deals with OpenPose, I think it's clear enough. Hope that helps. Here is the link: https://colab.research.google.com/drive/1m0DU-vjjTNWrXMEMqJptQHyp3SXUGbmf?usp=sharing

alvaro-budria avatar Oct 02 '23 21:10 alvaro-budria

@shirsneh @yujvv @AlmaDev40 @pkudzia I put together a Colab that installs OpenPose and circumvents the issue. It's divided in two parts, only the first part deals with OpenPose, I think it's clear enough. Hope that helps. Here is the link: https://colab.research.google.com/drive/1m0DU-vjjTNWrXMEMqJptQHyp3SXUGbmf?usp=sharing

i am getting the error:

rm: cannot remove '../openpose.avi': No such file or directory
chmod: cannot access './build/': No such file or directory
/bin/bash: line 1: ./build/examples/openpose/openpose.bin: No such file or directory
ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
openpose.avi: No such file or directory

andysingal avatar Oct 07 '23 12:10 andysingal

@alvaro-budria I put together a Colab that installs OpenPose and circumvents the issue. It's divided in two parts, only the first part deals with OpenPose, I think it's clear enough. Hope that helps. Here is the link: https://colab.research.google.com/drive/1m0DU-vjjTNWrXMEMqJptQHyp3SXUGbmf?usp=sharing Appreciate you putting this up, it was working fine as i had run this colab file like last month, but currently i am getting this error. --2023-12-02 11:27:53-- https://docs.google.com/uc?export=download&confirm=&id=1QCSxJZpnWvM00hx49CJ2zky7PWGzpcEh Resolving docs.google.com (docs.google.com)... 172.217.164.14, 2607:f8b0:4025:803::200e Connecting to docs.google.com (docs.google.com)|172.217.164.14|:443... connected. HTTP request sent, awaiting response... 303 See Other Location: https://doc-08-b0-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/77hnnm65bgiuavd9074nfmb8u3ul8khv/1701516450000/01999283555521790548//1QCSxJZpnWvM00hx49CJ2zky7PWGzpcEh?e=download&uuid=27496521-5ce8-4848-9bff-f1c2f1c07cbc [following] Warning: wildcards not supported in HTTP. --2023-12-02 11:27:53-- https://doc-08-b0-docs.googleusercontent.com/docs/securesc/ha0ro937gcuc7l7deffksulhg5h7mbp1/77hnnm65bgiuavd9074nfmb8u3ul8khv/1701516450000/01999283555521790548//1QCSxJZpnWvM00hx49CJ2zky7PWGzpcEh?e=download&uuid=27496521-5ce8-4848-9bff-f1c2f1c07cbc Resolving doc-08-b0-docs.googleusercontent.com (doc-08-b0-docs.googleusercontent.com)... 172.217.12.1, 2607:f8b0:4025:815::2001 Connecting to doc-08-b0-docs.googleusercontent.com (doc-08-b0-docs.googleusercontent.com)|172.217.12.1|:443... connected. HTTP request sent, awaiting response... 429 Too Many Requests 2023-12-02 11:27:54 ERROR 429: Too Many Requests. [ NOTE: I have tried to run this more than 10 times in last 15 days, and this is consistent issue, cant download models.zip.

Risingabhi avatar Dec 03 '23 16:12 Risingabhi

@alvaro-budria Hello, I tried to execute the Colab you provided, but when I run the command in the section, the following problems also occurred: Command: !cd $OPENPOSE_PATH && ./build/examples/openpose/openpose.bin --video ../video.mp4 --write_json ./output/ --display 0 --write_video ../openpose.avi Error: /bin/bash: line 1: ./build/examples/openpose/openpose.bin: No such file or directory

tillen1001 avatar Jan 10 '24 05:01 tillen1001

@andysingal I have the same problem, have you solved it? If so, can you tell me how to solve it?

tillen1001 avatar Jan 10 '24 06:01 tillen1001

the error persists in colab. what is the solution?

/bin/bash: line 1: ./build/examples/openpose/openpose.bin: No such file or directory

################

rm: cannot remove '../openpose.avi': No such file or directory /bin/bash: line 1: ./build/examples/openpose/openpose.bin: No such file or directory ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers built with gcc 11 (Ubuntu 11.2.0-19ubuntu1) configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared libavutil 56. 70.100 / 56. 70.100 libavcodec 58.134.100 / 58.134.100 libavformat 58. 76.100 / 58. 76.100 libavdevice 58. 13.100 / 58. 13.100 libavfilter 7.110.100 / 7.110.100 libswscale 5. 9.100 / 5. 9.100 libswresample 3. 9.100 / 3. 9.100 libpostproc 55. 9.100 / 55. 9.100 openpose.avi: No such file or directory

slives-lab avatar Jan 21 '24 19:01 slives-lab

Here is the Openpose Google Colab notebook https://colab.research.google.com/drive/15YDdKzLiFBnt4JPTNxPWnrg-Lx6Ybh-7?usp=sharing

It works for me.

THARUNESHWAR-369 avatar Apr 02 '24 04:04 THARUNESHWAR-369