Skip to content

Unity Barracudaを用いてTinyYoloV2をWebGL上で推論するサンプルです。

License

Notifications You must be signed in to change notification settings

Kazuhito00/Unity-Barracuda-TinyYoloV2-WebGL-Sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Unity-Barracuda-TinyYoloV2-WebGL-Sample

Unity Barracudaを用いてTinyYoloV2をWebGL上で推論するサンプルです。
現時点(2021/02/13)でUnityのWebGLはCPU推論のみのサポートです。
GPU推論と比較しパフォーマンスは出ません。

■Unity Editor実行
zppnt-jlek8
■WebGL実行
2wrie-hauk1

Demo

動作確認用ページは以下。
https://kazuhito00.github.io/Unity-Barracuda-TinyYoloV2-WebGL-Sample/WebGL-Build

FPS(参考値)

WebCamController.cs の Update()の呼び出し周期を計測したものです。
以下のように動作は基本的に非同期処理のため、FPSは見かけ上のFPSであり、推論自体のFPSではありません。
 CSharpBurst:非同期
 CSharpRef:同期
 ComputePrecompiled:非同期

TinyYoloV2
WebGL
CPU:Core i7-8750H CPU @2.20GHz
約0.4FPS
CSharpBurst
Android
Google Pixel4a(Snapdragon 730G)
未計測
Unity Editor
GPU:GTX 1050 Ti Max-Q(4GB)
約27FPS
ComputePrecompiled

Requirement (Unity)

  • Unity 2020.1.6f1 or later
  • Barracuda 1.0.4

Reference

Author

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

License

Unity-Barracuda-TinyYoloV2-WebGL-Sample is under MIT License.

About

Unity Barracudaを用いてTinyYoloV2をWebGL上で推論するサンプルです。

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published