Ошибка ValidateRequiredSidePackets при изменении примера отслеживания лица mediapipe на обнаружение обуви

Я выполнил эти инструкции, чтобы получить ресурсы и файл.aar для обнаружения обуви, а затем импортировал их, как показано здесь.

  • object_detection_3d_sneakers.tflite
  • objectdetection3d.binarypb
  • ssdlite_object_detection_labelmap.txt в папку с ресурсами и
  • mp_object_detection_3d.aar

в папку с ресурсами

  • mp_object_detection_3d.aar

в папку libs.

Я использовал наиболее похожий, на мой взгляд, пример проекта обнаружения лиц и поменял местами соответствующие файлы, как упоминалось выше.

сборка прошла успешно, но после запуска на устройстве android получаю ошибку:

    2020 - 06 - 29 15:43:44.002 1114 - 1312 / com.example.myfacedetectionapp E / native: E0629 15:43:44.002478 1312 graph.cc:415] INVALID_ARGUMENT: ValidateRequiredSidePackets failed to validate:
; Side packet "box_asset_name" is required but was not provided.
; Side packet "box_texture" is required but was not provided.
; Side packet "obj_asset_name" is required but was not provided.
; Side packet "obj_texture" is required but was not provided.
2020-06-29 15:43:44.006 1114 - 1312 / com.example.myfacedetectionapp E / AndroidRuntime: FATAL EXCEPTION: ExternalTextureConverter
      Process: com.example.myfacedetectionapp, PID: 1114
com.google.mediapipe.framework.MediaPipeException: invalid argument: ValidateRequiredSidePackets failed to validate:
; Side packet "box_asset_name" is required but was not provided.
; Side packet "box_texture" is required but was not provided.
; Side packet "obj_asset_name" is required but was not provided.
; Side packet "obj_texture" is required but was not provided.
at com.google.mediapipe.framework.Graph.nativeStartRunningGraph(Native Method)
at com.google.mediapipe.framework.Graph.startRunningGraph(Graph.java:289)
at com.google.mediapipe.components.FrameProcessor.startGraph(FrameProcessor.java:372)
at com.google.mediapipe.components.FrameProcessor.maybeAcceptNewFrame(FrameProcessor.java:296)
at com.google.mediapipe.components.FrameProcessor.onNewFrame(FrameProcessor.java:311)
at com.google.mediapipe.components.ExternalTextureConverter$RenderThread.renderNext(ExternalTextureConverter.java:275)
at com.google.mediapipe.components.ExternalTextureConverter$RenderThread.lambda$onFrameAvailable$0$ExternalTextureConverter$RenderThread(ExternalTextureConverter.java:221)
at com.google.mediapipe.components.-$$Lambda$ExternalTextureConverter$RenderThread$Y1vV_XyLsWZ0ebOvq-iwjQ0H3Sw.run(Unknown Source:4)
at android.os.Handler.handleCallback(Handler.java:883)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loop(Looper.java:214)
at com.google.mediapipe.glutil.GlThread.run(GlThread.java:134)

0 ответов

Другие вопросы по тегам