Closed SamedHrmn closed 7 months ago
Hi, from [Pixel 3, Android API 31], are you running the API on emulator?
I tried both, emulator and my android device(API 33). Same result.
I am also getting same error for subject segmentation as follows:
MobileVisionBase com.google.mlkit.vision.demo E Error preloading model resource com.google.mlkit.common.MlKitException: Waiting for the subject segmentation optional module to be downloaded. Please wait. at com.google.mlkit.vision.segmentation.subject.internal.zzj.load(com.google.android.gms:play-services-mlkit-subject-segmentation@@16.0.0-beta1:5) at com.google.mlkit.common.sdkinternal.ModelResource.zza(com.google.mlkit:common@@18.10.0:4) at com.google.mlkit.common.sdkinternal.zzn.run(Unknown Source:10) at com.google.mlkit.common.sdkinternal.zzt.run(com.google.mlkit:common@@18.10.0:2) at com.google.mlkit.common.sdkinternal.MlKitThreadPool.zze(com.google.mlkit:common@@18.10.0:4) at com.google.mlkit.common.sdkinternal.MlKitThreadPool.zzc(com.google.mlkit:common@@18.10.0:1) at com.google.mlkit.common.sdkinternal.zzi.run(Unknown Source:2) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644) at com.google.mlkit.common.sdkinternal.MlKitThreadPool.zzd(com.google.mlkit:common@@18.10.0:2) at com.google.mlkit.common.sdkinternal.zzk.run(Unknown Source:2) at java.lang.Thread.run(Thread.java:1012) 2024-03-06 16:51:30.283 15690-15690 VisionProcessorBase com.google.mlkit.vision.demo D Failed to process. Error: Waiting for the subject segmentation optional module to be downloaded. Please wait.
I am on pixel 7 pro and used mlkit vision example of subject segmentation
I am also getting same error for subject segmentation as follows:
MobileVisionBase com.google.mlkit.vision.demo E Error preloading model resource com.google.mlkit.common.MlKitException: Waiting for the subject segmentation optional module to be downloaded. Please wait. at com.google.mlkit.vision.segmentation.subject.internal.zzj.load(com.google.android.gms:play-services-mlkit-subject-segmentation@@16.0.0-beta1:5) at com.google.mlkit.common.sdkinternal.ModelResource.zza(com.google.mlkit:common@@18.10.0:4) at com.google.mlkit.common.sdkinternal.zzn.run(Unknown Source:10) at com.google.mlkit.common.sdkinternal.zzt.run(com.google.mlkit:common@@18.10.0:2) at com.google.mlkit.common.sdkinternal.MlKitThreadPool.zze(com.google.mlkit:common@@18.10.0:4) at com.google.mlkit.common.sdkinternal.MlKitThreadPool.zzc(com.google.mlkit:common@@18.10.0:1) at com.google.mlkit.common.sdkinternal.zzi.run(Unknown Source:2) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644) at com.google.mlkit.common.sdkinternal.MlKitThreadPool.zzd(com.google.mlkit:common@@18.10.0:2) at com.google.mlkit.common.sdkinternal.zzk.run(Unknown Source:2) at java.lang.Thread.run(Thread.java:1012) 2024-03-06 16:51:30.283 15690-15690 VisionProcessorBase com.google.mlkit.vision.demo D Failed to process. Error: Waiting for the subject segmentation optional module to be downloaded. Please wait.
I am on pixel 7 pro and used mlkit vision example of subject segmentation
This is a different error. It just means the model is being downloaded. You can retry the app to see if it works.
I tried both, emulator and my android device(API 33). Same result.
The error is probably due to OpenGL version is too low on the device. Could you try to update your system to latest, which might update OpenGL to workable version?
emuglGLESv2_enc
might indicate it's using GL ES2.0, which is too old to support this feature.
Close this issue now since there's no reply for a while.
Feel free to reopen it if you have any more concern. Thanks!
Hi, Im trying to implement subject segmentation model in Android project but im getting that error during initialization of segmenter. Here error logs and my AndroidManifest.xml.
AndroidManifest.xml
To Reproduce Example Steps to reproduce the behavior in sample app:
Expected behavior No error.
SDK Info:
Smartphone: