I followed the tutorials below for the installation of the tensorflow model:
- https://flows.nodered.org/node/node-red-contrib-tf-model
- https://github.com/tensorflow/tfjs/blob/master/tfjs-node/WINDOWS_TROUBLESHOOTING.md
Steps taken:
I first installed the
@tensorflow/tfjs-node
inside Node-RED directly by running the following code:C:\Users\username\.node-red\node_modules> npm install @tensorflow/[email protected]
Ran
npm install
underC:\Users\username\.node-red\node_modules\@tensorflow\tfjs-node
:C:\Users\username\.node-red\node_modules\@tensorflow\tfjs-node> npm install
Finally ran
npm install node-red-contrib-tf-model
in the same directory:C:\Users\username\.node-red\node_modules\@tensorflow\tfjs-node> npm install node-red-contrib-tf-model
Error that occured:
npm WARN [email protected] requires a peer of @tensorflow/tfjs-node@^1.4.0 but none is installed. You must install peer dependencies yourself. npm WARN @tensorflow/[email protected] No license field.
I have installed the correct tfjs-node version, and so why does this error occur?
Edit: Tried installing the module straight from Node-RED itself and got the following
ERROR:The specified module could not be found.
C:\Users\username\.node-red\node_modules\@tensorflow\tfjs-node\lib\napi-v6\tfjs_binding.node
When I checked the above directory it turns out that I do have the 'tfjs_binding.node'.
What am I doing wrong here? Can someone please help me out.