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.

tfjs-node does not implement kernel FlipLeftRight

See original GitHub issue

Both BlazeFace and HandDetector models work just fine in NodeJS using tensorflow backend

The issue is in how post-processing is done in JS code which uses FlipLeftRight kernel func to reorient input for better second-pass detection.

So if you use tfjs examples, you’ll run into this issue

Error: Kernel ‘FlipLeftRight’ not registered for backend ‘tensorflow’

Unfortunately, those models are internally used by several others as well such as FaceMesh and HandSkeleton which makes list of affected models quite long.

Request is to implement FlipLeftRight in tfjs-node - expectation is to have feature parity between main backends.

Also, is there a matrix of implemented features per backend?

Environment: TFJS 3.6.0 on Ubuntu 20.04

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:26 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
jinjingforevercommented, Jun 28, 2021

Thank you @DCtheTall! This PR might be a good example of adding missing ops to node JS, and this doc might also be helpful. Really appreciate it!

1reaction
jinjingforevercommented, Jul 1, 2021

Hi @DCtheTall, I’ve merged my PR. Now you can try implementing flipLeftRight using reverse. The PR also updated the tests. You can test your changes locally by running yarn test in the tfjs-node directory.

Thank you! Really appreciate your help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flip image left right in tensorflow js - Stack Overflow
Save this question. Show activity on this post. I am new to tfjs and stuck on finding mirror of image.
Read more >
Creates a tf.Tensor with the provided values, shape and dtype.
This implementation of einsum has the following limitations: Does not support >2 input tensors. Does not support duplicate axes for any given input...
Read more >
Live Stream #136: More Tensorflow.js + Fire Effect Challenge
Tap to unmute. If playback doesn't begin shortly, try restarting your device. Your browser can't play this video. Learn more. Switch camera.
Read more >
Building Blocks of Neural Networks and TensorSpace
node -v. The system should display the Node.js version installed on ... was not compiled to use: AVX2 Preprocessing hdf5 combined model.
Read more >
A Appendix - Deep Learning with JavaScript: Neural networks ...
For a convolutional layer (e.g., conv2d) of TensorFlow.js, the kernel is its ... the suitable version for the version of tfjs-node-gpu you intend...
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