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
30.92k stars 7.84k forks source link

How to run portable Version on Ubuntu? Run python and ROS Wrapper without Nvidia? #2049

Open ChrisTiberius opened 2 years ago

ChrisTiberius commented 2 years ago

A few things that i still couldn’t figure out after reading all the information. Setup: Ubuntu. No Nvidia -> no cuda Can I use the portable Version with my Setup? If so, how can I get the openpose.bin file? Because it is not included when I download the zip from here: https://github.com/CMU-Perceptual-Computing-Lab/openpose/releases

And the instructions say: Quick Start Overview Simply use the OpenPose Demo from your favorite command-line tool (e.g., Windows PowerShell or Ubuntu Terminal). E.g., this example runs OpenPose on your webcam and displays the body keypoints:

Ubuntu

./build/examples/openpose/openpose.bin

After downloading and unpacking the Instructions.txt says:

  1. Double click on models/getBaseModels.bat to download the required body, face, and hand models. I don’t thing .bat files run under ubuntu.

Furthermore and most important. Can I run the portable Version with python, or do I have to “Compiling and Running OpenPose from Source” anyways?

Can the ROS Wrapper run the portable Version, or do I have to “Compiling and Running OpenPose from Source” anyways?

Can i run OpenPose at all under Ubuntu without a Nvidia?

thanks

ravijo commented 2 years ago

@ChrisTiberius

No Nvidia -> no cuda

Yes. You are right.

Can I use the portable Version with my Setup? If so, how can I get the openpose.bin file?

I guess by saying portable version, you mean openpose.bin file. Please note that the openpose.bin file is provided for Windows users only. Therefore, if you are on the WIndows platform, please feel free to use it. Note that the file name is OpenPoseDemo.exe

  1. Double click on models/getBaseModels.bat to download the required body, face, and hand models. I don’t thing .bat files run under ubuntu.

You are following installations steps written for WIndows. In the case of Ubuntu, please refer to the following URL: https://github.com/CMU-Perceptual-Computing-Lab/openpose/blob/master/doc/installation/0_index.md#compiling-and-running-openpose-from-source

Furthermore and most important. Can I run the portable Version with python, or do I have to “Compiling and Running OpenPose from Source” anyways?

To enable Python support, the binaries must be generated with correct CMake flags. So I suggest you compile it from the source.

Can the ROS Wrapper run the portable Version, or do I have to “Compiling and Running OpenPose from Source” anyways?

Please refer to the following URL: https://github.com/ravijo/ros_openpose

Can i run OpenPose at all under Ubuntu without a Nvidia?

Yes. Please set the CPU_ONLY flag during compilation.