Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem installing node-red-contrib-tf-model #16

Closed
keekeen opened this issue Dec 10, 2020 · 2 comments
Closed

Problem installing node-red-contrib-tf-model #16

keekeen opened this issue Dec 10, 2020 · 2 comments

Comments

@keekeen
Copy link

keekeen commented Dec 10, 2020

Hi @yhwang,

Firstly, thank you for sharing this node.

I am having some issue getting the node running on Node-RED and would like to check with you if I have done anything wrong for my setup. I have attached some photos for your reference and the following are done under Docker on Windows.

Screenshot 2020-12-10 144459
On the above picture, I have run the following commands under the node red data directory:

  1. npm install @tensorflow/tfjs-node
  2. npm install node-red-contrib-tf-model
    However, the return message suggested me to installed version 1.4.0 for @tensorflow/tfjs-node

Screenshot 2020-12-10 160909
In the above pircture, I have installed version 1.4.0 first before executing "npm install node-red-contrib-tf-model" and got no errors.

Screenshot 2020-12-10 143712
However, it still shows that tf-model node is not available in node-red.

Apologies if I am missing anything here. I would be happy to share any more info that you need.

Thank you very much for your time!!

@yhwang
Copy link
Owner

yhwang commented Dec 10, 2020

can you try this inside your docker container?

git clone https://github.com/yhwang/node-red-contrib-tf-model.git
cp -r node-red-contrib-tf-model/examples/object-detection .
cd object-detection

And follow the instruction here to finish the whole setup: https://github.com/yhwang/node-red-contrib-tf-model/tree/master/examples/object-detection

It that example, it runs Node-RED from there and everything is inside that directory, including Node-RED and custom nodes. It uses https instead of http. If you want to turn https off, you just need to comment out those lines in settings.js and restart the Node-RED:

    https: {
        key: fs.readFileSync('privatekey.pem'),
        cert: fs.readFileSync('certificate.pem')
    },

    // The following property can be used to cause insecure HTTP connections to
    // be redirected to HTTPS.
    requireHttps: true,

If you need other custom nodes, just run npm install <custom node package> in there. You will see the custom node once you restart your Node-RED.

@keekeen
Copy link
Author

keekeen commented Dec 13, 2020

Hi @yhwang,

Thank you very much. I am able to get it running within Docker container now.

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants