-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Crash when running Android text classification sample with MobileBERT. #5459
Comments
Hi kuaasish, I'm using Android Studio Jellyfish 2023.3.1 Patch 1 and don't want to go all the way back to Flamingo. Could you make sure the Text Classification example is using mediapipe:tasks-text:0.10.14? Thanks, --Howard |
Hi @v-hogood, Currently, we do not have the original Pixel available. We will check if it can be reproduced on our older devices and will inform you of the status. Thank you!! |
Thanks! Make sure it's mediapipe:tasks-text:0.10.14 it works on 0.10.13 and earlier. |
Hi @v-hogood, This issue might be due to recent changes in the latest version. Your device is quite old, so we request you to try it on another device with the same Android API. We believe this could also be caused by a RAM shortage, which might prevent the device from handling the model's requirements. Please use newer devices with sufficient RAM. Thank you!! |
This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you. |
I will try it on a Samsung Galaxy S9 and let you know. |
0.10.14 also crashes on a Samsung Galaxy S9 (Android 10 API 29).
|
Hi @PaulTR, Do you know why this is happening? Version 0.10.13 runs the sample text classification with MobileBert fine, but there seems to be a problem with the latest version, 0.10.14. Thank you!! |
This works again on 0.10.15. |
Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
No
OS Platform and Distribution
Android 10 API 29
Mobile device if the issue happens on mobile device
Google Pixel (original)
Browser and version if the issue happens on browser
No response
Programming Language and version
Kotlin
MediaPipe version
0.10.14
Bazel version
No response
Solution
tasks-text
Android Studio, NDK, SDK versions (if issue is related to building in Android environment)
No response
Xcode & Tulsi version (if issue is related to building for iOS)
No response
Describe the actual behavior
Text Classification crashes when classifying with MobileBERT
Describe the expected behaviour
Text Classification works as with AverageWordVec
Standalone code/steps you may have used to try to get what you need
Other info / Complete Logs
The text was updated successfully, but these errors were encountered: