openpose icon indicating copy to clipboard operation
openpose copied to clipboard

openpose.bin not found

Open camrynfriedman opened this issue 4 years ago • 14 comments

I'm hoping this post won't get deleted. I've spent hours reading through past issues with the same problem I'm facing, and I cannot seem to find a solid solution (and those issues ended up being marked as "stale". Similar issues #1671

Issue Summary

I'm trying to run the demo for OpenPose but I am getting a "no such file or directory" error.

Executed Command (if any)

./build/examples/openpose/openpose.bin --video examples/media/video.avi

OpenPose Output (if any)

None

Errors (if any)

zsh: no such file or directory: ./build/examples/openpose/openpose.bin

Type of Issue

Compilation/installation error

Your System Configuration

  1. Whole console output The only error I got was stated above.

  2. OpenPose version Latest GitHub code

  3. General configuration: Using MacOS Big Sur; M1 chip; 16GB RAM

camrynfriedman avatar May 13 '21 05:05 camrynfriedman

@camrynfriedman

Have you compiled the package before executing openpose.bin? Please follow the documentation here.

Alternatively, if you are on the Windows platform, you can download prebuild executables without worrying about the compilation process. Please follow the releases page.

ravijo avatar May 14 '21 11:05 ravijo

@camrynfriedman

Have you compiled the package before executing openpose.bin? Please follow the documentation here.

Alternatively, if you are on the Windows platform, you can download prebuild executables without worrying about the compilation process. Please follow the releases page.

@ravijo , I'm running on MacOS. I have followed all the documentation and instructions. I have the M1 chip so I am unsure of what to do for Step 5 of the CMake configuration. As of right now, I believe I have set the GPU_MODE flag to CPU_ONLY, but I still have issues. Do you have any other advice?

camrynfriedman avatar May 17 '21 17:05 camrynfriedman

@camrynfriedman

I have followed all the documentation and instructions.

Sorry to say but this is such a vague sentence that it is difficult to find what you did exactly.

I have the M1 chip so I am unsure of what to do for Step 5 of the CMake configuration. As of right now, I believe I have set the GPU_MODE flag to CPU_ONLY,

I have not used OpenPose on a Mac. However, GPU_MODE set to CPU_ONLY should not be a problem, I believe.

but I still have issues.

Please let us know clearly what is the issue you are facing. So far you have mentioned only one issue which is openpose.bin not found. Kindly let us know (in detail) what you have done, what are the system configuration, complete error description (if any).

Furthermore, remember that the OpenPose team has sincerely developed a template form to submit a new issue. You can find it here. By this time, you might have realized already that why it is recommended to follow the template. Because it gives a complete picture of the problem to the developer team. Kindly consider it.

ravijo avatar May 18 '21 10:05 ravijo

@camrynfriedman @ravijo

I have the same issue. When I downloaded the just-run-it (ie, no compiling) code, there is no bin folder anymore. I think this is the problem the OP is having. The error is because there is no bin folder to find the .exe in!

What would you suggest, Ravijo? Your suggestion linked to the compile-it version but I'd rather not need to go through all of those steps if I don't need to (just being lazy I suppose)....

ARUBiomech avatar Jun 07 '21 10:06 ARUBiomech

@camrynfriedman @ravijo I have found out how to fix my issue. If you download from the main page where it says "Get Code", it downloads something called OpenPose-master. This version doesn't have a bin folder. If you instead download the code from here: https://github.com/CMU-Perceptual-Computing-Lab/openpose/releases , then 1.7 is NOT named master and there IS a bin folder.

Now bin folder is not my issue but instead the cuda driver version....

Anyway, maybe this will help the OP!

ARUBiomech avatar Jun 07 '21 10:06 ARUBiomech

@ARUBiomech

Yes, you are on the right track. Furthermore, I suggest the same for Windows Operating System. Please allow me to quote my previous response taken from above.

Alternatively, if you are on the Windows platform, you can download prebuild executables without worrying about the compilation process. Please follow the releases page.

Next, I always suggest everyone follow the documentation. The authors of OpenPose have made beautiful documentation. Please allow me to quote a few lines from it.

Windows Portable Demo If you just want to use OpenPose without compiling or writing any code, simply use the latest portable version of OpenPose for Windows. ... < some text cropped to make the post shorter > Download the latest OpenPose version from the Releases section.

The above-quoted lines are taken from the following section OpenPose Doc - Installation / Windows Portable Demo.

Now bin folder is not my issue but instead the cuda driver version....

Please share more information with us. Just saying the cuda driver version is my issue insufficient to understand the problem.

ravijo avatar Jun 07 '21 12:06 ravijo

@ravijo I think my current issue isn't with OpenPose but with the fact our university doesn't give us admin privileges (I commonly get issues with this). I will see if I still get this issue after I've tried installing the batch model files with admin privileges. My guess is something went wrong with the batch file process...

The line I'm at now, though is this:

Error: Cuda check failed (35 vs. 0): CUDA driver version is insufficient for CUDA runtime version.

I saw some other people with similar questions about this but their queries were closed due to this being a CUDA issue, rather than an OpenPose issue.

ARUBiomech avatar Jun 07 '21 12:06 ARUBiomech

I'm hoping this post won't get deleted. I've spent hours reading through past issues with the same problem I'm facing, and I cannot seem to find a solid solution (and those issues ended up being marked as "stale". Similar issues #1671

Issue Summary

I'm trying to run the demo for OpenPose but I am getting a "no such file or directory" error.

Executed Command (if any)

./build/examples/openpose/openpose.bin --video examples/media/video.avi

OpenPose Output (if any)

None

Errors (if any)

zsh: no such file or directory: ./build/examples/openpose/openpose.bin

Type of Issue

Compilation/installation error

Your System Configuration

1. **Whole console output**
   The only error I got was stated above.

2. **OpenPose version**
   Latest GitHub code

3. **General configuration**:
   Using MacOS Big Sur; M1 chip; 16GB RAM

Try this one please. I had same issue. We need to find new version cmake .. follow the tar.gz link ..

  !wget -q https://cmake.org/files/v3.21/cmake-3.21.0-rc3-linux-x86_64.tar.gz
 !tar xfz cmake-3.21.0-rc3-linux-x86_64.tar.gz --strip-components=1 -C /usr/local

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 becaue of CUDA10
  !wget -q https://cmake.org/files/v3.21/cmake-3.21.0-rc3-linux-x86_64.tar.gz
  !tar xfz cmake-3.21.0-rc3-linux-x86_64.tar.gz --strip-components=1 -C /usr/local
  !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
  !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
  !pip install -q youtube-dl
  !cd openpose && rm -rf build || true && mkdir build && cd build && cmake -DBUILD_PYTHON=ON .. && make -j`nproc`
!mkdir openpose/videos 

senemaktas avatar Jul 09 '21 11:07 senemaktas

Ubuntu and Mac file : openpose.bin Windows file : openpose.exe you know .. there is no problem

amrabozeid avatar Nov 21 '21 22:11 amrabozeid

I have the same issue using a MacOS Sonoma 14.2.1. If you check the openpose repo, there is no openpose.bin file in the ./openpose/examples/openpose directory

michael01890 avatar Jan 31 '24 04:01 michael01890

@michael01890

openpose.bin should be generated after the compilation. The extension could be different based on the operating system. Please check the directory after successful compilation.

ravijo avatar Jan 31 '24 05:01 ravijo

I think it is because I am having issues when I compile. I am getting:

openpose/src/openpose/core/arrayCpuGpu.cpp:3:14: fatal error: 'caffe/blob.hpp' file not found #include <caffe/blob.hpp> ^~~~~~~~~~~~~~~~ 1 error generated. make[2]: *** [src/openpose/CMakeFiles/openpose.dir/core/arrayCpuGpu.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [src/openpose/CMakeFiles/openpose.dir/all] Error 2 make: *** [all] Error 2

And when I follow the documentation to brew install caffe I get: Error: caffe has been disabled because it is deprecated upstream!

I checked the homebrew website for caffe and it says that it is currently disabled? link

I am not sure how to go about these errors

michael01890 avatar Jan 31 '24 05:01 michael01890

@michael01890

You are into the right direction. Unfortunately I don’t have much experience in MacOS. However the error you posted above simply means that caffe is missing, and you should try installing it.

ravijo avatar Jan 31 '24 11:01 ravijo