Comments (4)
My apologies - I think you're absolutely right that Deep Profiling used with Barracuda produces flawed results and that a non-deep-profiling build appears to match your numbers more closely. Will see if the code change makes a difference but I'm much happier with the performance now.
from blazeposebarracuda.
Hello, @BlueprintBen !
Currently, BlazePoseBarracuda is optimized for GPU inference.
In my environment, BlazePoseBarracuda is running at about 200 FPS or more performance on the high performance GPU (ex: RTX2080 super).
On the other hand, BlazePoseBarracuda is running at about 20 FPS or less performance on the not high performance computer (ex: Macbook Pro Early 2015).
Thus, depending on the GPU performance of the computer, there are cases where real-time operation is difficult.
Thanks.
from blazeposebarracuda.
Is there anything that I have to enable in the example scene to utilize the GPU rather than the CPU? I'm using an RTX 6000 but am seeing ~30ms of Barracuda.Execute.
Edit: Actually taking ~45ms on Full, ~30ms on Lite (had to count the PoseDetector and the PoseLandmarker). My CPU is an i7-7700k.
Edit 2: Numbers only drop a few ms if in a Standalone build with Deep Profiling. When running in Editor or Standalone, my CPU usage is 30% while my GPU usage is 15%.
Edit 3: On my laptop I'm seeing (i7-6700HQ / GTX960M), I'm seeing 70ms of CPU time per frame (Full model) used by Barracuda.Execute.
from blazeposebarracuda.
FPS drops when using Deep Profile not only in Standalone build but also in Unity Editor.
Therefore, try to check the FPS from the Stats in the Game Window without using the Deep Profile.
Also, in PoseDetectionBarracuda and PoseLandmarkBarracuda, the device used for inference is not explicitly specified, but is automatically set by Unity Barracuda.
Therefore, can you please clone PoseDetectionBarracuda and PoseLandmarkBarracuda to your local PC and explicitly specify GPU inference?
The changes in the source code are as follows.
Change lines:
- https://github.com/creativeIKEP/PoseDetectionBarracuda/blob/33279c9945e16244a62edcdc8804ee284f58e3af/Packages/PoseDetectionBarracuda/Script/PoseDetecter.cs#L44
- https://github.com/creativeIKEP/PoseLandmarkBarracuda/blob/e57ab453b61efebdadeb94589a13336734f78af2/Packages/PoseLandmarkBarracuda/Script/PoseLandmarker.cs#L152
Code change:
woker = model.CreateWorker();
↓
woker = model.CreateWorker(WorkerFactory.Device.GPU);
from blazeposebarracuda.
Related Issues (17)
- shader error,my editor is 2022.2.2f1 HOT 3
- Is multiple bodies tracking possible? HOT 1
- 3D Avatar Animation HOT 2
- How do I make main camera stop rotating? HOT 3
- Detecter returns NaN for x,y,z in each (x, y, z, w) Pose World Landmark HOT 4
- How can I speed up at a smartphone? HOT 2
- Use custom onnx converted by mediapipe HOT 1
- 3D Avatar HOT 3
- demo with unity chan avatar HOT 3
- update to support latest MadiaPipe 0.8.11 ? HOT 1
- How can I run this on mobile?
- Get landmark screen position HOT 1
- World Landmark Raw Buffer Output HOT 2
- Linux standalone build HOT 1
- After detection whensomeone is not infront of camera ,skeltons is still there HOT 8
- WebGL Support HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blazeposebarracuda.