Open farmaker47 opened 5 months ago
I have this issue too
These three rules worked for me:
-keep class com.google.mediapipe.proto.** { *; }
-keepclassmembers class * extends com.google.protobuf.GeneratedMessageLite { *; }
-keep class com.google.common.flogger.** { *; }
I can verify that the solution @erfansn provided also works in my project but I think this is a workaround rather than a solution for MediaPipe Facedetector task. I hope this issue stays open until they have a version that we do not have to apply rules in proguard file.
Hi @farmaker47,
We will keep the issue open until it is resolved. Additionally, we are sharing this with our team to ensure it remains on our radar. However, we cannot provide an exact timeline for the fix.
Thank you!!
I have this issue too :-/
Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
No
OS Platform and Distribution
Android 13
Mobile device if the issue happens on mobile device
All devices
Browser and version if the issue happens on browser
No response
Programming Language and version
Kotlin 1.9.23
MediaPipe version
0.10.14
Bazel version
No response
Solution
Face Detector
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
Project builds with minifyEnable true but Face detector fails to load model.
Describe the expected behaviour
Builds, loads and uses model with minifyEnable = true
Standalone code/steps you may have used to try to get what you need
The project I use is under NDA and in production and unfortunately I cannot share a link. Steps are easy. Using FaceDetector simply change minifyEnable of the release version to true. Solutions like this one: https://github.com/google-ai-edge/mediapipe/issues/3509 do not work anymore. As a matter of fact the issue is not building but making it work.
Placing some logs I see that the initialization procedure fails as a runtimeexception here:
the proguard rules I use are:
Other info / Complete Logs
The logs are: