An open API service indexing awesome lists of open source software.

https://github.com/kazuhito00/unity-barracuda-singlehandlocalization-webgl

Unity BarracudaでSingle-Hand-Localizationを動作させるサンプルです。単一の手の位置推定を行います。また、現時点(2021/04/02)でUnityのWebGLはCPU推論のみのサポートです。
https://github.com/kazuhito00/unity-barracuda-singlehandlocalization-webgl

barracuda hand onnx unity

Last synced: 10 months ago
JSON representation

Unity BarracudaでSingle-Hand-Localizationを動作させるサンプルです。単一の手の位置推定を行います。また、現時点(2021/04/02)でUnityのWebGLはCPU推論のみのサポートです。

Awesome Lists containing this project

README

          

# Unity-Barracuda-SingleHandLocalization-WebGL
Unity Barracudaで[Single-Hand-Localization](https://github.com/Kazuhito00/Single-Hand-Localization)を動作させるサンプルです。

単一の手の位置推定を行います。

また、現時点(2021/04/02)でUnityのWebGLはCPU推論のみのサポートです。




※上記イメージはブラウザ上でのWebGL実行(CPU推論)

# Demo
動作確認用ページは以下。

[https://kazuhito00.github.io/Unity-Barracuda-SingleHandLocalization-WebGL/WebGL-Build](https://kazuhito00.github.io/Unity-Barracuda-SingleHandLocalization-WebGL/WebGL-Build/)

# Requirement (Unity)
* Unity 2021.1.0b6 or later
* Barracuda 1.3.0 or later

# FPS(参考値)
WebCamController.cs の Update()の呼び出し周期を計測したものです。

推論に非同期処理のため、FPSは見かけ上のFPSであり、推論自体のFPSではありません。

| | SingleHandLocalization |
| - | :- |
| WebGL
CPU:Core i7-8750H CPU @2.20GHz | 約6.7FPS
CSharpBurst |
| WebGL
CPU:Core i5-5200U CPU @2.20GHz | 約3.0FPS
CSharpBurst |
| Unity Editor
GPU:GTX 1050 Ti Max-Q(4GB) | 約45FPS
ComputePrecompiled |


※上記イメージはUnity Editorでの実行(GPU推論)

# Reference
* [Barracuda 1.3.0 preview](https://docs.unity3d.com/Packages/com.unity.barracuda@1.3/manual/index.html)
* [Kazuhito00/Single-Hand-Localization](https://github.com/Kazuhito00/Single-Hand-Localization)

# Author
高橋かずひと(https://twitter.com/KzhtTkhs)

# License
Unity-Barracuda-SingleHandLocalization-WebGL is under [Apache v2 License](LICENSE).