homuler / MediaPipeUnityPlugin

Unity plugin to run MediaPipe
MIT License
1.8k stars 467 forks source link

v0.11.0 "BoxTracking" scene cannot run on android platform #1250

Open tisaud opened 2 months ago

tisaud commented 2 months ago

Plugin Version or Commit ID

0.11.0

Unity Version

2021.3.18f

Your Host OS

Windows10 home

Target Platform

Android

Description

i try to run "BoxTracking" scene on android platform,after build to android,i got error like this: 2024/08/15 16:51:12.774 5890 5915 Error Unity BoxTrackingSolution: Mediapipe.MediaPipeException: NOT_FOUND: ValidatedGraphConfig Initialization failed. 2024/08/15 16:51:12.774 5890 5915 Error Unity No registered object with name: ObjectDetectionSubgraphCpu; Unable to find Calculator "ObjectDetectionSubgraphCpu" 2024/08/15 16:51:12.774 5890 5915 Error Unity No registered object with name: ObjectTrackingSubgraphCpu; Unable to find Calculator "ObjectTrackingSubgraphCpu" 2024/08/15 16:51:12.774 5890 5915 Error Unity at Mediapipe.Status.AssertOk () [0x00015] in E:\GoogleDownload\MediaPipeUnityPlugin-all (2)\Packages\com.github.homuler.mediapipe\Runtime\Scripts\Framework\Port\Status.cs:147 2024/08/15 16:51:12.774 5890 5915 Error Unity at Mediapipe.Unity.GraphRunner+d39.MoveNext () [0x0009c] in E:\GoogleDownload\MediaPipeUnityPlugin-all (2)\Assets\MediaPipeUnity\Samples\Common\Scripts\GraphRunner.cs:119 2024/08/15 16:51:12.774 5890 5915 Error Unity at Mediapipe.Unity.WaitForResult+d20.MoveNext () [0x000a0] in E:\GoogleDownload\MediaPipeUnityPlugin-all (2)\Assets\MediaPipeUnity\Samples\Common\Scripts\WaitForResult.cs:51 2024/08/15 16:51:12.774 5890 5915 Error Unity at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00027] in \

please tell me how to fix these error

Code to Reproduce the issue

\

Additional Context

\

homuler commented 2 months ago

Did you download the plugin from this page? (It won't work if the library and source code versions are different, of course.)

Even if it didn’t work, support for Box Tracking has ended (see https://ai.google.dev/edge/mediapipe/solutions/guide), so if necessary, please request paid support.

tisaud commented 2 months ago

thank you anyway! I Fixed this issue when i switch to GPU mode。

tisaud commented 2 months ago

I am currently facing a new problem. The frame rate was stable above 50fps when the app was first opened, but it suddenly dropped to below 20fps within a minute or so after running for a while, which I find very confusing.

homuler commented 1 month ago

It may be related to https://github.com/homuler/MediaPipeUnityPlugin/issues/1140