Closed lc-spxl closed 1 year ago
Hello @schmidt-sebastian,
Could you please look into this issue. Thank you
Thank you for reporting this. We will have to do some investigation here to see what the root cause is.
Hi,
I don't know if it can help but disabling tasks-vision
(delete the npm package and all the import inside the source code), tasks-audio
starts to work again.
I am thinking, may be there is a conflict between the packages?
I believe #4697, #4737 and this are the same as my #4729: there's a danger that MediaPipe can step on its own toes when creating more than one Task, and this can manifest itself with strange StartGraph or ValidateGraph errors, or others, depending on what Tasks are being initialized.
My solution was to simply await the completion of the first create call, or chain the Promise with then(), and then issuing the other create call.
Just tried to load in series the various tasks, waiting for each Promise to fullfill.
Unfortunately this seems not to work, specifically the audio task consistently fails even if we do not actually load the vision task
As said by @alessandroperetti seems more an issue involving the presence of both packages. May it be related to overlapping types in the packages eg. FilesetResolver
An updated view of the task loading in series
Interesting. I look forward to seeing what the MediaPipe team determines.
This has been fixed internally. Release is coming shortly.
Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
No
OS Platform and Distribution
Web / SvelteKit
MediaPipe Tasks SDK version
npm package
Task name (e.g. Image classification, Gesture recognition etc.)
Audio Classifier
Programming Language and version (e.g. C++, Python, Java)
Javascript (Typescript)
Describe the actual behavior
Describe the expected behaviour
Standalone code/steps you may have used to try to get what you need
Other info / Complete Logs