google-ai-edge / mediapipe-samples

Apache License 2.0
1.56k stars 407 forks source link

android object_detection error #312

Open iamzhongjian opened 9 months ago

iamzhongjian commented 9 months ago

hello, when i run object_detection demo, i get this error:

Object detector failed to load model with error: internal: ; RET_CHECK failure (mediapipe/util/resource_util_android.cc:86) last_slash_idx != std::string::nposefficientdet-lite0.tflite doesn't have a slash in it

PaulTR commented 7 months ago

Hey @iamzhongjian what path string are you using for your model file in your app? Is this for the default sample? If so, are you seeing the model downloaded into your assets folder on build?

iamzhongjian commented 7 months ago

Hey @iamzhongjian what path string are you using for your model file in your app? Is this for the default sample? If so, are you seeing the model downloaded into your assets folder on build?

yes, it's the default sample, import into Android Studio