MediaPipeUnityPlugin icon indicating copy to clipboard operation
MediaPipeUnityPlugin copied to clipboard

cpu mode for android

Open ghasedak3411 opened this issue 1 year ago • 3 comments

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

ghasedak3411 avatar Jun 13 '24 05:06 ghasedak3411

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

homuler avatar Jun 14 '24 14:06 homuler

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? cpu

ghasedak3411 avatar Jun 14 '24 14:06 ghasedak3411

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.

homuler avatar Jun 15 '24 08:06 homuler