# How to load a model for Tensorflow.js node?

**URL:** <https://discourse.nodered.org/t/how-to-load-a-model-for-tensorflow-js-node/32357>\
**Category:** General\
**Created:** [2 September 2020 16:49 UTC](https://discourse.nodered.org/t/how-to-load-a-model-for-tensorflow-js-node/32357 "2020-09-02T16:49:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![foobrizio](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/foobrizio/32/28261_2.png) [@foobrizio](https://discourse.nodered.org/u/foobrizio)\
**Post date:** [2 September 2020 16:49 UTC](https://discourse.nodered.org/t/how-to-load-a-model-for-tensorflow-js-node/32357/1 "2020-09-02T16:49:41Z")

</div>

Hi everyone,  
I'm trying to create a flow on my Raspberry PI 4 with TensorFlow nodes, but I can't make them work.  
As you can see in the screenshot below, I'm testing 2 different TensorFlow nodes:

- the one named "tfjs object detection" (node-red-contrib-tfjs-object-detection), that is stuck in "loading model" status. I didn't pass any model file to him, because I don't have .json files to pass, so I let the node look for a model from a public endpoint via web;
- the other one named "tf coco ssd" (node-red-contrib-tfjs-coco-ssd), that should automatically work with coco-ssd model, but it doesn't work too. As you can see from the debug, it shows me a SyntaxError soon after the Deploy.

 ![Schermata del 2020-09-02 18-38-39](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/1/1197933d699a756ea5a1c76d1351414e63815c57.png)

I linked the outputs of the 2 nodes to a function node, that should filter the detected objects, and a msg.payload debug node, that I use to understand if the 2 orange nodes work.  
How can I fix one of them? I didn't pass any model, but I'd like to understand how to pass a model.json file to one of them. Thanks in advance for the help

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [1 November 2020 16:49 UTC](https://discourse.nodered.org/t/how-to-load-a-model-for-tensorflow-js-node/32357/2 "2020-11-01T16:49:44Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
