MediaPipeUnityPlugin
MediaPipeUnityPlugin copied to clipboard
cpu mode for android
Feature Description
Hello, considering that Raspberry 4 doesn't have gpu, do you develop a version for cpu mode on android operating system?
Current Behaviour/State
No response
Additional Context
No response
I believe the Task API can run on both CPU and GPU. https://github.com/homuler/MediaPipeUnityPlugin/blob/bd417bfd463d2da9cae0d9f9f7d29dd9ef4fabe6/Packages/com.github.homuler.mediapipe/Runtime/Scripts/Tasks/Vision/FaceDetector/FaceDetectorOptions.cs#L33-L36
In the sample app, see https://github.com/homuler/MediaPipeUnityPlugin/blob/bd417bfd463d2da9cae0d9f9f7d29dd9ef4fabe6/Assets/MediaPipeUnity/Samples/Scenes/Tasks/Face%20Detection/FaceDetectionConfig.cs#L19-L24
I need it to run on android OS on cpu, in the description also written for android on gpu.
am i wrong and it works on android with cpu?
The sample app is written using a legacy API, and to run it on Android, you need to enable the GPU (although it is probably possible to build it for the CPU, we do not currently support this). On the other hand, I believe the Task API (e.g. FaceDetector) can run on both GPU and CPU. There are also sample scenes using the Task API.