Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

320
Views
MLKit Error: Failed to load model from path mlkit_pose/pose_person_detector_f16.tflite

I made an Unity plugin for Android that uses MLKit. Everything works fine untill the MLKit pose detector is analyzing the image:

        Task<Pose> result =
                _pd.process(image)
                        .addOnSuccessListener(
                                new OnSuccessListener<Pose>() {
                                    @Override
                                    public void onSuccess(Pose pose) {
                                        Log.i("MyComppany", "trig OnSuccessListener!");
                                    }
                                })
                        .addOnFailureListener(
                                new OnFailureListener() {
                                    @Override
                                    public void onFailure(@NonNull Exception e) {
                                        Log.i("MyComppany", "trig OnFailureListener!");
                                        Log.i("MyComppany", String.valueOf(e));
                                    }
                                });

after which I get this error:

03-30 12:16:47.318 13171 13171 I MyCompany   : com.google.mlkit.common.MlKitException: Mediapipe failed with message: internal: Graph has errors: 
03-30 12:16:47.318 13171 13171 I MyCompany   : Calculator::Open() for node "posetrackingsubgraph__posedetectionsubgraph__TfLiteInferenceCalculator" failed: RET_CHECK failure (third_party/mediapipe/util/tflite/tflite_model_loader.cc:70) model Failed to load model from path mlkit_pose/pose_person_detector_f16.tflite

This suggests that the tfile was lost when building the plugin but I am not sure how to debug this further. Any insight is appreciated.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

This was happening because I literally didn't have the specified model file. Since I was using an AAR plugin, I had to download all the underlying dependencies into Unity's Assets/Plugins/Android using unity-jar-resolver. After I did so, I was experiencing a dependency collision, which forced me to delete that dependency ("com.google.mlkit:pose-detection:17.0.1-beta3"). In the end, it turned out that I had only a reference of "com.google.mlkit:pose-detection:17.0.1-beta3" in the Unity Plugin, not the whole contents.

As a workaround, I exported my project into Android Studio and added "com.google.mlkit:pose-detection:17.0.1-beta3" into Gradle. Everything works now.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!