より良いエンジニアを目指して

1日1つ。良くなる!上手くなる!

OpenPoseをQuickStartしてみる

人間の骨格を検知する動画認識ライブラリがOpenPoseです。

github.com

これもいつか触ってみよう、触ってみようと思っているうちに年の瀬が近づいてきたので、とりあえず軽く触ってみました。

QuickStartに手順が書いてあります。

  1. Windows版のPortable Demoが公開されているのでこれをダウンロードしてきます。私はCPUonly版を
  2. models¥getModels.batを実行
  3. 「bin\OpenPoseDemo.exe --video examples\media\video.avi」を実行。

f:id:rimever:20191102111216p:plain

見事実行されました。

が、重い。カクカク以前に、fpsが1も出ないくらい。

うーん。GPUが必要そうですね。

getModels.batを忘れずに

QuickStartの手順ではgetModels.batの実行が特に記載されてませんが、これがないと失敗します。

f:id:rimever:20191102110131p:plain

Caffe trained model file not found: models\pose/body_25/pose_iter_584000.caffemodel.
Possible causes:
        1. Not downloading the OpenPose trained models.
        2. Not running OpenPose from the same directory where the `model` folder is located.
        3. Using paths with spaces.