-
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
Not found: ValidatedGraphConfig Initialization failed.When I use handtrackinggpu.aar for Android,print:No registered calculator found. #1450
Comments
I also encountered the same problem when compiling the latest version for android face detection gpu , how can I solve it? |
I have the same problem, what did we miss? |
Now I've solved the problem! |
Can you Please Tell how ? |
@ DandyLorenz, I've got this problem, Could you give help? |
My question is from Android aar build my project,What is the reason for my problem?Because I imported the wrong resource package in Android stdio:Src --> jniLibs --> arm64-v8a or armeabi-v7a,I imported face recognition resources so file in hand tracking project。The root cause is that the .so file in the jnilibs folder will be overwritten my hand tracking aar file.So ,You can build AAR successfully and put it into use by strictly following my steps. |
ok, I re-check it, thanks. |
I build hand tracking aar or handTrackingGpu.aar,use it in Android error,print:
MediaPipeException: not found: ValidatedGraphConfig Initialization failed.
No registered object with name: HandLandmarkTrackingGpu;
Unable to find Calculator "HandLandmarkTrackingGpu"
this is my error information from android stdio log print when I build hand trcking application:
I am using the new version 0.8.2, but the same problem has occurred to me. this is link:
issues-546 The problem has not been fixed, I will give more infomation,help me:
The above error is to use AAR to compile Android APK for Hand Tracking GPU .
My compilation environment WSL (Windows Subsystem for Linux) is normal, it can compile aar and apk normally. Fortunately, I have successfully built hellow world (desktop), edge detection (aar), hair segmentation (aar), facedetectiongpu (aar), they can work normally in my application. However, only the compilation of handdetectiongpu aar has an appeal problem.
mkdir my_handtrackinggpu_aar && cd my_handtrackinggpu_aar
write this in BUILD file:
There is one way of writing, but it still doesn't work,like this:
There is another way of writing, but it also doesn't work and print our error,like this:
I think the above command is suspicious, because I want to compile a gpu version, but I am not sure whether it is correct or not. From the result, the aar cannot work normally.
#build binary_graph:
bazel build -c opt mediapipe/graphs/hand_tracking:hand_tracking_mobile_gpu_binary_graph
## Use the above command to output the result normally, I will copy the corresponding file to my Android project:
copy bazel-bin/mediapipe/examples/android/src/java/com/google/mediapipe/apps/my_handtrackinggpu_aar into android project "libs" directory
copy bazel-bin/mediapipe/graphs/hand_trackinghand_tracking_mobile_gpu.binarypb into android project,"assets" directory
copy mediapipe/models/hand_landmark.tflite into android project,"assets" directory
copy mediapipe/models/palm_detection.tflite into android project,"assets" directory
The next step is to build the Android project,I think my project Including dependence is normal.some informations:
minSdkVersion 21;targetSdkVersion 28;
def camerax_version = "1.0.0-rc01"
implementation "androidx.camera:camera-core:$camerax_version"
implementation "androidx.camera:camera-camera2:$camerax_version"
implementation "androidx.camera:camera-lifecycle:$camerax_version"
6.MainActivity.java
Finally, I finished all the preparatory work to run, it will print the error log proposed in this article, resulting in the failure to run normally on multiple models of mobile phones.Thank you for your valuable time. I hope you can give me your opinions and solutions. Good luck
The text was updated successfully, but these errors were encountered: