question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HandPoseDetection demo error on wasm backend

See original GitHub issue

System 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:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:10

github_iconTop GitHub Comments

1reaction
rthadurcommented, Feb 16, 2022

I was able to reproduce the same but it happens as soon as i change to tfjs-wasm and I get this error

RuntimeError: memory access out of bounds

0reactions
google-ml-butler[bot]commented, Sep 26, 2022

Are you satisfied with the resolution of your issue? Yes No

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found