Install OpenPose on mac (Catalina)

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

What is OpenPose | Analyzing human poses with deep learning スクリーンショット 2020-06-28 10.26.37.png

[arXiv]OpenPose: Realtime Multi-Person 2D Pose Estimation using Part Affinity Fields [GitHub]openpose

Install Openpose (mac)

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 

Run

Run image

cd ~/tf-openpose
python run.py --model=mobilenet_thin --resize=432x368 --image=../Desktop/soccer.jpg

Execute real-time video using the MacBook built-in camera

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.

[Tips] ModuleNotFoundError: No module named When'XXX'

Let's install with pip

Other sites that I referred to

[TensorFlow version] OpenPose on MacBook (compatible with osx Mojave)

Recommended Posts

Install OpenPose on mac (Catalina)
Install Tensorflow on Mac
Install pyenv on mac
Install Ansible on Mac
Install Python on Mac
Install Python 3 on Mac
Install Python 3.4 on Mac
Install Caffe on Mac
Install mecab on mac
Install mecab-python on Mac
Install pygame on python3.4 on mac
Install numba on your Mac
Install pandas 0.14 on python3.4 [on Mac]
Install Django on your Mac
Install pillow on Mac OSX 10.9
[Mac] Tips: Install pyquery on Mac [pyquery]
Catalina on Mac and pyenv
Install anaconda on Mac → Add Library
How to install mysql-connector-python on mac
Steps to install matplotlib on Mac
Install Sphinx on Mac OS X
Install Python 3.7 Anaconda on MAC, but Python 2
Install Scipy on Mac OS Sierra
Install python3 on Mac (El Capitan)
How to install OpenCV on Mac
Install mitmproxy on Mac OS X
Install VirtualBox on CentOS 7 on VirtualBox (mac + vagrant)
Steps to install python3 on mac
Install python2.x on catalina with pyenv
Install pgmagick on Mac OS X 10.9
Install opencv on Mac using Anaconda Navigator
How to install drobertadams / toggl-cli on Mac
python on mac
Install Python less than 3.5.3 on macOS Catalina
Install anaconda on a new Mac anyway
Install Python 3 on MacOS Catalina (with Homebrew only)
Install Python and libraries for Python on MacOS Catalina
Install mecab on Marvericks
Install TensorFlow on Ubuntu
Install Faiss on CentOS 7
Install pip on Mavericks
Install Python on Pidora.
Install mongodb on termux
Install Scrapy on python3
Install docker on Fedora31
Pyenv + virtualenv on Mac
Install numba on CentOS 7.2
Install Plone (4.3.6) on MacOSX (10.10.3)
Install PySide2 on Ubuntu
Install Python3.4 on CentOS 6.6
numba installation on mac
Install gensim on Marvericks
Install JModelica on Ubuntu
Install Anaconda on Windows 10
Install numpy on Marvericks
Install python on windows
Install enebular-agent on Chromebook
Install pycuda on Windows10
Install mecab-python on CentOS
Install Python 2.7.3 on CentOS 5.4
Run OpenMVG on Mac