When I tried to run OpenPose on Mac (macOS Catalina, 10.15.5), I was able to reach the operation by specifying the version of each tool and installing it, so that memo.
What is OpenPose | Analyzing human poses with deep learning
[arXiv]OpenPose: Realtime Multi-Person 2D Pose Estimation using Part Affinity Fields [GitHub]openpose
I installed it according to the following procedure. Install Openpose (mac) However, as of June 28, 2020, it did not work with the version of the dependency library etc., so I changed "Python" and "TensorFlow" and installed it.
Python 3.6.10 Recommendation: When building a virtual environment, it is convenient to put it in a python version control format with pyenv.
TensorFlow 1.5.0
Install TensorFlow by specifying the version.
pip3 install tensorflow==1.5
cd ~/tf-openpose
python run.py --model=mobilenet_thin --resize=432x368 --image=../Desktop/soccer.jpg
It didn't work when I ran run_webcam.py
, but I could do it with --camera = 1
.
(Maybe it's not 0 if multiple cameras are set.
python run_webcam.py --model=mobilenet_thin --resize=432x368 --camera=1
There are four types of models (--model
). It seems that cmu needs a lot of specs, so mobilenet is recommended.
Let's install with pip
[TensorFlow version] OpenPose on MacBook (compatible with osx Mojave)
Recommended Posts