homuler / MediaPipeUnityPlugin

Unity plugin to run MediaPipe
MIT License
1.82k stars 466 forks source link

Holistic with Iris does not work on Android #61

Closed some2014 closed 3 years ago

some2014 commented 3 years ago

Dear developer: Thank you very much for your great achievements!

Everything is OK on Mac OS,there is a problem on Android 10 device(Cpu A78 Gpu G77) Face detection, hand tracking and pose tracking are all Fine. After hollistic && Iris tracking runs, the screen stops and cannot be detected.

The log prompt may be this: 2021-02-16 02:15:40.314 15997-16112/? E/tflite: Following operations are not supported by GPU delegate: DEQUANTIZE: 577 operations will run on the GPU, and the remaining 0 operations will run on the CPU.

Looking forward to your reply, thank you!

homuler commented 3 years ago

Can you run the official apk (mediapipe/examples/android/src/java/com/google/mediapipe/apps/holistictrackinggpu:holistictrackinggpu) on your device?

some2014 commented 3 years ago

Can you run the official apk (mediapipe/examples/android/src/java/com/google/mediapipe/apps/holistictrackinggpu:holistictrackinggpu) on your device?

Google's official holistictrackingGpu works well。

homuler commented 3 years ago

OK. Will you enable verbose log (see https://github.com/homuler/MediaPipeUnityPlugin#debug-mediapipe) and share the runtime log, please?

adb logcat Unity:V native:V tflite:V CRASH:E AndroidRuntime:E "*:S"

I would also like you to try disabling iris detection. Please uncheck Detect Iris from the inspector window for Holistic (Assets/MediaPipe/Examples/Graphs/Holistic/Objects/Holistic.prefab). Desktop-screenshot

some2014 commented 3 years ago

Hello,After canceling iris recognition, the program can run normally

homuler commented 3 years ago

Please filter logs like this.

adb logcat Unity:V native:V tflite:V CRASH:E AndroidRuntime:E "*:S"

And the output would be very long, so please upload the file.

some2014 commented 3 years ago

log file: log.txt Thanks!

homuler commented 3 years ago

Thank you for uploading the log. I'm afraid that the process is too heavy for your device, although there may be a workaround or room for improvements.

some2014 commented 3 years ago

Thank you for uploading the log. I'm afraid that the process is too heavy for your device, although there may be a workaround or room for improvements.

Hello, The performance of CPU is between 855 and 865, Redmi K30; And There is also a problem that using APK packaged by unity in win10 can't call the Camera

some2014 commented 3 years ago

The log of packing APK not working in win10:

log.txt

midopooler commented 3 years ago

@some2014 Can you share the built APK?

homuler commented 3 years ago

@some2014 I've made a big change to the sample app at #296. If you're still interested in the issue, please tell me whether the issue is fixed or not.