Home

Awesome

logo-pose-estimatiton-for-tflite-3

platform-ios swift-version lisence PRs Welcome

This project is Pose Estimation on iOS with TensorFlow Lite.<br>If you are interested in iOS + Machine Learning, visit here you can see various DEMOs.<br>

2D pose estimation in real-time3D pose estimation
<img src="https://user-images.githubusercontent.com/37643248/77227994-99ba2a80-6bc7-11ea-9b08-9bb57723bc42.gif" width=240px><img src="https://user-images.githubusercontent.com/37643248/110994933-e68ca780-83bc-11eb-8331-d827e19d2d36.gif" width=240px>

Features

Models

<details><summary>Source Images</summary> <p>
Namegifimg-0img-1img-2
Source-<img src="https://user-images.githubusercontent.com/37643248/81012180-15301c80-8e94-11ea-83ec-bd45a690efb3.jpg" width=200px><img src="https://user-images.githubusercontent.com/37643248/81010350-1ca1f680-8e91-11ea-81fd-0ff4c78b8641.png" width=200px><img src="https://user-images.githubusercontent.com/37643248/81009122-0135ec00-8e8f-11ea-8a3a-e62929f19d8e.png" width=200px>
</p> </details>

Joint Samples

Model Namesgifimg-0img-1img-2
PoseNet-pose-demo-linedot-posenet-0pose-demo-linedot-posenet-2pose-demo-linedot-posenet-3
PEFM CPM-pose-demo-PEFMCPM-0pose-demo-PEFMCPM-2pose-demo-PEFMCPM-3
PEFM Hourglass-pose-demo-PEFMHourglass-0pose-demo-PEFMHourglass-2pose-demo-PEFMHourglass-3
OpenPose (multi-person)-pose-demo-openpose-0pose-demo-openpose-2pose-demo-openpose-3

Heatmap-ConfidenceMap Samples

Model Namesgifimg-0img-1img-2
PoseNet----
PEFM CPM-pose-demo-heatmap-PEFMCPM-0pose-demo-heatmap-PEFMCPM-2pose-demo-heatmap-PEFMCPM-3
PEFM Hourglass-pose-demo-heatmap-PEFMHourglass-0pose-demo-heatmap-PEFMHourglass-2pose-demo-heatmap-PEFMHourglass-3
OpenPose (multi-person)-pose-demo-heatmap-posenet-0pose-demo-heatmap-posenet-2pose-demo-heatmap-posenet-3

Heatmap-PAF Samples

Model Namesgifimg-0img-1img-2
OpenPose (PAF x)-pose-demo-heatmap-pafx-PEFMHourglass-0pose-demo-heatmap-pafx-PEFMHourglass-2pose-demo-heatmap-pafx-PEFMHourglass-3
OpenPose (PAF y)-pose-demo-heatmap-pafy-PEFMHourglass-0pose-demo-heatmap-pafy-PEFMHourglass-2pose-demo-heatmap-pafy-PEFMHourglass-3

Meta Data

2D

✅ vs ☑️NameSizeInference<br>Time<br>on iPhone11ProPost-process<br>Time<br>on iPhone11ProPCKh-0.5multi person <br>vs<br> single personModel SourcePapertflite<br>download
PoseNet13.3 MB---singletensorflow/tensorflowPersonLab
PEFM CPM2.4 MB---singleedvardHua/PoseEstimationForMobileConvolutional Pose Machines
PEFM Hourglass v11.8 MB---singleedvardHua/PoseEstimationForMobileStacked Hourglass Networks
PEFM Hourglass v21.7 MB---singleedvardHua/PoseEstimationForMobileStacked Hourglass Networks
OpenPose7.8 MB---multiildoonet/tf-pose-estimationOpenPose
☑️AlphaPose----singleosmr/imgclsmobRMPE
☑️SelecSLS----singleosmr/imgclsmob-
☑️IBPPose----singleosmr/imgclsmob-
☑️Lightweight OpenPose----singleosmr/imgclsmobOpenPose

3D

✅ vs ☑️NameSizeInference<br>Time<br>on iPhone11ProPost-process<br>Time<br>on iPhone11Pro(metric)Model SourcePapertflite<br>download
Baseline3DPose137.1 MB347 ms79 ms-mks0601/3DMPPE_POSENET_RELEASEBaseline3Ddownload
LiteBaseline3DPose16.6 MB116 ms<br>(cpu only)19 ms<br>(cpu only)SangbumChoi/MobileHumanPoseMHPdownload

Requirements

gem install cocoapods

Build & Run

  1. Install dependencies with cocoapods
cd ~/{PROJECT_PATH}
pod install
  1. Open the PoseEstimation-TFLiteSwift.xcworkspace and run the project

See also

License

This repository is licensed under Apache 2.0. Full license text is available in LICENSE.