tfjs: tfjs-node does not implement kernel FlipLeftRight
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
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 2
- Comments: 26 (16 by maintainers)
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!
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 testin thetfjs-nodedirectory.Thank you! Really appreciate your help!
@DCtheTall please go-ahead , thanks for your interest.
@rthadur I am interested in implementing this if you’re still accepting external contributors.
Usually feature request are prioritized by the team and are assigned later , hopefully it will get picked up soon. I am tagging this for contributions welcome if any one interested.
cc @pyu10055 @lina128 @mattsoulanille @jinjingforever
I’ll try and get an update on this.