Note that there were quite a few things to install in advance when running tf-pose-estimation, which caused it to get stuck. By the way, the introduction of tf-pose-estimation was done by referring to the following article. https://qiita.com/ikekou/items/9a632b10588b423db172
Git
This is a preliminary work required when executing the following command.
git clone https://www.github.com/ildoonet/tf-pose-estimation
Anyway, put Git. You can't clone a project without Git.
Introduced Git on Mac (using Homebrew) https://qiita.com/kimurayut/items/6f50cf1060e44e664c3b
python、pip、numpy
This is a preliminary work required when executing the following command.
pip3 install -r requirements.txt
Since tf-pose-estimation is often used using python, it is included.
Also, install is pip. numpy is imported in the module of the project, so put it in.
I think it's okay, but if you are not familiar with it, please install it by following the steps below.
$ brew install pyenv
$ pyenv install 3.6.5
$ pyenv global 3.6.5
$ eval "$(pyenv init -)"
$ pip3 install numpy
pcre,swig
This is a preliminary work required when executing the following command.
$ swig -python -c++ pafprocess.i && python3 setup.py build_ext --inplace
Please refer to the procedure in the following article for installation. https://qiita.com/Rotten_Fruits/items/bb4764c765d7e1cdf96f
wget
This is a preliminary work required when executing the following command.
bash download.sh
[Installation method]
$ brew install wget
opencv,tensorflow
This is a preliminary work required when executing the following command.
python -c 'import tf_pose; tf_pose.infer(image="./images/p1.jpg ")'
[Installation method]
$ pip install opencv-python
$ pip install -U tensorflow==1.15)
* The version of tensorflow is 1.Please set to 15
This should be a smooth introduction!
Recommended Posts