Open niubitily opened 7 months ago
Hi @niubitily,
This message indicates that your application lacks the code for "mediapipe.tasks.audio.audio_classifier.AudioClassifierGraph".
Kindly review your dependencies to guarantee the appropriate linkage of the required code.
Would you mind verifying the dependency on 'com.google.mediapipe:tasks-vision'? For additional details, please visit: https://developers.google.com/mediapipe/solutions/vision/face_detector/android#dependencies.
Thank you!!
Hi @niubitily,
This message indicates that your application lacks the code for "mediapipe.tasks.audio.audio_classifier.AudioClassifierGraph".
Kindly review your dependencies to guarantee the appropriate linkage of the required code.
Would you mind verifying the dependency on 'com.google.mediapipe:tasks-vision'? For additional details, please visit: https://developers.google.com/mediapipe/solutions/vision/face_detector/android#dependencies.
Thank you!!
I believe there might be a misinterpretation. When I individually call PoseLandmarker or AudioClassifier, everything works fine. Below is the reference in my build.gradle (Module):
// MediaPipe Library
implementation 'com.google.mediapipe:tasks-vision:0.20230731'
// Mediapipe Library
implementation 'com.google.mediapipe:tasks-audio:0.20230731'
However, when I execute: poseLandmarker = PoseLandmarker.createFromOptions(context, options) followed by: audioClassifier = AudioClassifier.createFromOptions(context, options) the second "createFromOptions" operation fails. It doesn't matter which task I initialize first. Therefore, I suspect there might be some common resource conflicts during these calls."
Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
None
OS Platform and Distribution
ArchLinux 6.7.3
MediaPipe Tasks SDK version
0.20230731'
Task name (e.g. Image classification, Gesture recognition etc.)
tasks-vision,tasks-audio
Programming Language and version (e.g. C++, Python, Java)
Kotlin
Describe the actual behavior
The error occurs when calling
createFromOptions
for the second time.Describe the expected behaviour
use PoseLandmarker and AudioClassifier simultaneously
Standalone code/steps you may have used to try to get what you need
Other info / Complete Logs