Skip to content

EDGETPU_NNAPI delegate causes model shape errors in PoseLandmarker #1435

Description

@nabergh

Plugin Version or Commit ID

v0.16.3

Unity Version

6000.5.4f1

Your Host OS

macOS 26.5.1

Target Platform

iOS

Target Device

iPhone 15 Pro

[iOS Only] XCode Version

26.2

Build Command

Install from .unitypackage.

Bug Description

When running with the PoseLandmarker with the EDGETPU_NNAPI Delegate as suggested here, an error occurs (see log).

Steps to Reproduce the Bug

Log

BadStatusException: INVALID_ARGUMENT: Graph has errors: 
Calculator::Process() for node "mediapipe_tasks_vision_pose_landmarker_poselandmarkergraph__mediapipe_tasks_vision_pose_detector_posedetectorgraph__mediapipe_tasks_core_inferencesubgraph__inferencecalculator__mediapipe_tasks_vision_pose_landmarker_poselandmarkergraph__mediapipe_tasks_vision_pose_detector_posedetectorgraph__mediapipe_tasks_core_inferencesubgraph__InferenceCalculator" failed: ; RET_CHECK failure (external/mediapipe/mediapipe/calculators/tensor/inference_calculator_utils.cc:144) (tflite_tensor.bytes)==(input_tensor.bytes())TfLiteTensor and Tensor sizes do not match. TfLiteTensor dims: [1, 224, 224, 3], type: FLOAT32, bytes: 602112 vs. MP Tensor dims: [1, 224, 224, 4], type: kFloat32, bytes: 802816;  at index 0 [MediaPipeTasksStatus='606']
  at Mediapipe.Status.AssertOk () [0x00000] in <00000000000000000000000000000000>:0 
  at Mediapipe.MpResourceHandle.AssertStatusOk (System.IntPtr statusPtr) [0x00000] in <00000000000000000000000000000000>:0 
  at Mediapipe.Tasks.Core.TaskRunner.Send (Mediapipe.PacketMap inputs) [0x00000] in <00000000000000000000000000000000>:0 
  at Mediapipe.Unity.Sample.PoseLandmarkDetection.PoseLandmarkerRunner+<Run>d__8.MoveNext () [0x00000] in <00000000000000000000000000000000>:0 
  at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <00000000000000000000000000000000>:0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions