homuler / MediaPipeUnityPlugin

Unity plugin to run MediaPipe
MIT License
1.83k stars 467 forks source link

Running on a TV box with poor performance #1252

Open InitialFStudio opened 3 months ago

InitialFStudio commented 3 months ago

Plugin Version or Commit ID

v0.14.0

Unity Version

2021.3.40f1

Your Host OS

Windows10 home

Target Platform

Android

Description

Running on my phone, everything is normal and the performance is good, but when I install it on my TV box, it runs very slowly and the performance is poor. The GPU models of my TV box are Mali G31 and Mail G30, and I hope to get help

Code to Reproduce the issue

\

Additional Context

\

homuler commented 3 months ago

Am I correct in understanding that you are testing the sample app as it is? In any case, it’s a good idea to profile it to see where the time is being spent. By the way, in the latest version, the input image is no longer copied to the CPU on Android, so the performance may have improved somewhat.

InitialFStudio commented 3 months ago
  1. I used the Pose demo in your latest plug-in. As long as it was started, Unity's frame rate dropped to more than 20 frames.
  2. I used Mediapipe’s Android library myself, and after starting it, the frame rate dropped to 20 frames. After the above tests, I'm thinking that maybe it's because of the poor performance of my device. My business needs only require the 2D coordinates of more than 10 skeletal points of the human body. Is it possible to test such a streamlined model file?