Node-RED: TensorFlow backend for TensorFlow.js via Node.js

Hi, trying to install tensorflow.js to use with Node-RED in Jetson Nano. Node-RED itself runs perfect in the Nano
https://github.com/tensorflow/tfjs/blob/master/tfjs-node/README.md

Specifically I want to use this Node-RED node: https://flows.nodered.org/node/node-red-contrib-tfjs-coco-ssd

but it does not work due to required dependencies (@tensorflow) not working. So in attempt to solve this issue, I tried to install @tensorflow manually:

npm install @tensorflow/tfjs-node

and

npm install @tensorflow/tfjs-node-gpu

but it gives error messages

CPU-linux-1.7.0.tar.gz

  • Downloading libtensorflow
    (node:17165) UnhandledPromiseRejectionWarning: Error: Unsupported system: cpu-linux-arm64

and

GPU-linux-1.7.0.tar.gz

  • Downloading libtensorflow
    (node:9011) UnhandledPromiseRejectionWarning: Error: Unsupported system: gpu-linux-arm64

Do we have any solution to make TensorFlow.js via Node.js work?

Hi,

TensorFlow for Jetson need to be build from source.
We provides some standard TensorFlow package but no TensorFlow.js.

You can try to build it from source with this the instruction here:
https://github.com/tensorflow/tfjs-node/tree/master/tfjs-node#optional-build-optimal-tensorflow-from-source

Thanks.