Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

328
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda