Closed sewonjun closed 3 months ago
I have the same problem since a day. It started with version 0.10.10
. "@mediapipe/tasks-vision": "^0.10.9
works without any problems.
With version 0.10.0 the wasm files were updated. See the changelog.
-Update WASM files for 0.10.10 release
It has probably something to do with that.
Hi @schmidt-sebastian,
Could you please have look into this issue?
Thank you!!
Hi @sewonjun,
We have released an updated version, 0.10.12 https://www.npmjs.com/package/@mediapipe/tasks-vision/v/0.10.12 Could you please retry and inform us if the issue persists?
Thank you!!
Hi @sewonjun,
We have released an updated version, 0.10.12 https://www.npmjs.com/package/@mediapipe/tasks-vision/v/0.10.12 Could you please retry and inform us if the issue persists?
Thank you!!
I tried it with the 0.10.12 version locally. Unfortunetely I still have the problem.
Any update here? 👀
version 0.10.12 works for me!! Thanks!
Mac version 14.4
Chrome version 122.0.6261.94
Working for me with 0.10.12 as well, though I was running into the same issue. In my case, it was because I was calling predictWebcam
before the HTMLVideoElement was fully loaded. I see you're listening for the loadeddata
event... is there a loadedmetadata
event that you can listen for to ensure the height and width of the video element are not zero? I ended up fixing my issue by setting the video element in a separate step than calling predictWebcam
, but was going to look into waiting on the metadata next if that didn't work. Not 100% sure this is the ticket, but hopefully it helps!
predictWebcam
I do not use predictWebcam
in my code, but simple HTML5 video object that is passed to mediaPipe. It worked before with the old version and I'm still wondering why this is not working anymore for 0.12.12.
Update: I tried it again with the latest version and strangely it worked now. I made a proper installation (removed node_modules and so on). I made a few tries and all worked. Thanks! 🚀
Have I written custom code (as opposed to using a stock example script provided in MediaPipe)
No
OS Platform and Distribution
M1 ios 14.3 Chrome 120.0.6099.109
MediaPipe Tasks SDK version
No response
Task name (e.g. Image classification, Gesture recognition etc.)
face landmark detection
Programming Language and version (e.g. C++, Python, Java)
javascript
Describe the actual behavior
vision_wasm_internal Graph successfully started but can't draw face mask
Describe the expected behaviour
mediapipe face landmark detection working
Standalone code/steps you may have used to try to get what you need
When i was trying on localhost, it worked randomly. And when i tried it on my ip address host it didn't work. And also, it worked fine untill sat 17 feb 2024.
Other info / Complete Logs