Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpu mode for android #1195

Open
ghasedak3411 opened this issue Jun 13, 2024 · 3 comments
Open

cpu mode for android #1195

ghasedak3411 opened this issue Jun 13, 2024 · 3 comments
Labels
type:feature New feature or request

Comments

@ghasedak3411
Copy link

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 ghasedak3411 added the type:feature New feature or request label Jun 13, 2024
@homuler
Copy link
Owner

homuler commented Jun 14, 2024

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

@ghasedak3411
Copy link
Author

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

@homuler
Copy link
Owner

homuler commented Jun 15, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants