HandPoseDetection demo error on wasm backend
See original GitHub issueSystem information
- I used hand-pose-detection from GitHub but added a tfjs-backend-wasm
- TensorFlow.js installed: npm
- TensorFlow.js version: tried 3.09 - 3.13
Describe the current behavior Trying to run HandPoseDetection lib on TFJS WASM backend. It works well with WebGL backend, but once I am switching to WebAssembly I get an error:
RuntimeError: memory access out of bounds
at tfjs-backend-wasm-simd.wasm:0x8674
at tfjs-backend-wasm-simd.wasm:0x3c25
at tfjs-backend-wasm-simd.wasm:0x2444
at BackendWasm.move (backend_wasm.ts:84)
at BackendWasm.write (backend_wasm.ts:55)
at BackendWasm.makeOutput (backend_wasm.ts:193)
at Object.kernelFunc (binary_kernel.ts:54)
at kernelFunc (engine.ts:644)
at engine.ts:711
at Engine.scopedRun (engine.ts:478)
Seems like it happens after trying to detect palm but I am not sure, to be honest.
I tried multiple TFJS versions (3.09 - 3.13), and see an error on each.
Describe the expected behavior The expected behavior is hand-pose-detection works with WASM like it works on WEBGL, CPU backends or old hand pose library (which is also works as expected on all backends)
Standalone code to reproduce the issue I used this demo, the stock source code is here just added tf-js-wasm-backend.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:10
Top Results From Across the Web
WASM backend for tensorflowjs throws "Unhandled Rejection ...
Although the demo with the vanillajs can run it without any error for hours, in react it throws "Unhandled Rejection (RuntimeError): index out ......
Read more >3D Hand Pose with MediaPipe and TensorFlow.js
The new hand pose detection model in action. Try out the live demo! How to use it. 1. The first step is to...
Read more >Hand pose detection using Tensorflow Js & React Native
So had to switch to cpu backend. Still it was slow and unreliable. Therefore I started with fresh new react-native project :-.
Read more >Real Time AI HAND POSE Estimation with Javascript ...
Want to get started with gesture detection?Or maybe you're interested in sign language recognition?Well...hand pose recognition can help you ...
Read more >@tensorflow/tfjs-backend-wasm examples - CodeSandbox
Learn how to use @tensorflow/tfjs-backend-wasm by viewing and forking @tensorflow/tfjs-backend-wasm example apps on CodeSandbox.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I was able to reproduce the same but it happens as soon as i change to tfjs-wasm and I get this error
Are you satisfied with the resolution of your issue? Yes No