homuler / MediaPipeUnityPlugin

Unity plugin to run MediaPipe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cpu mode for android

ghasedak3411 opened this issue · 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

I believe the Task API can run on both CPU and GPU.

/// <summary>
/// Base options for the face detector task.
/// </summary>
public Tasks.Core.BaseOptions baseOptions { get; }

In the sample app, see

public Tasks.Core.BaseOptions.Delegate Delegate { get; set; } =
#if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN || UNITY_EDITOR_OSX || UNITY_STANDALONE_OSX
Tasks.Core.BaseOptions.Delegate.CPU;
#else
Tasks.Core.BaseOptions.Delegate.GPU;
#endif

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

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.