Mediapipe error: com.google.mediapipe.framework.MediaPipeException: internal: Graph has errors: Calculator::Process() for node "mediapipe_tasks_vision_face_detector_facedetectorgraph__TensorsToDetectionsCalculator" failed #5844
Labels
os:windows
MediaPipe issues on Windows
platform::android
Android Solutions
task:face detection
Issues related to Face Detection: Identify faces in images and video
type:bug
Bug in the Source Code of MediaPipe Solution
Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
None
OS Platform and Distribution
Windows 11, Android 14
Mobile device if the issue happens on mobile device
No response
Browser and version if the issue happens on browser
No response
Programming Language and version
Android Kotlin
MediaPipe version
com.google.mediapipe:tasks-vision:0.10.14
Bazel version
No response
Solution
Face detection
Android Studio, NDK, SDK versions (if issue is related to building in Android environment)
No response
Xcode & Tulsi version (if issue is related to building for iOS)
No response
Describe the actual behavior
Sample code provided in github works well for the face_detection_short_range.tflite model but not working for face_detection_full_range_sparse.tflite model.
Describe the expected behaviour
Expected behavior is , it should work with face_detection_full_range_sparse.tflite model also, which provides range over 5m for the face detection.
Standalone code/steps you may have used to try to get what you need
Steps to Reproduce 1. Change the model name to 'val modelName = "face_detection_full_range_sparse.tflite" ' 2. Download model from the https://github.com/google-ai-edge/mediapipe/blob/master/docs/solutions/models.md and copy it to assets folder. 3. Comment //apply from:'download_models.gradle' from an app buid.gradle file. 4. Clean the build and run the application 5. Select Camera tab from the application. 6. In logs it give below error and face not get detected. Mediapipe error: com.google.mediapipe.framework.MediaPipeException: internal: Graph has errors: Calculator::Process() for node "mediapipe_tasks_vision_face_detector_facedetectorgraph__TensorsToDetectionsCalculator" failed: ; RET_CHECK failure (mediapipe/calculators/tensor/tensors_to_detections_calculator.cc:365) (raw_box_tensor->shape().dims[1])==(num_boxes_)
Other info / Complete Logs
The text was updated successfully, but these errors were encountered: