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推論のみのサポートです。
- Host: GitHub
- URL: https://github.com/kazuhito00/unity-barracuda-singlehandlocalization-webgl
- Owner: Kazuhito00
- License: apache-2.0
- Created: 2021-04-01T14:34:23.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-04-02T00:56:21.000Z (over 5 years ago)
- Last Synced: 2025-08-28T10:46:09.241Z (11 months ago)
- Topics: barracuda, hand, onnx, unity
- Language: C#
- Homepage:
- Size: 40.8 MB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).