Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

319
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda