dceejay / tfjs-coco-ssd

Node-RED node for tensorflowjs coco ssd
Apache License 2.0
14 stars 10 forks source link

TypeError: Cannot read property 'whereImpl' of undefined #16

Open ghost opened 3 years ago

ghost commented 3 years ago

Update to 1.0.1 version and now I have this error and object detection don't work ...

I see in the terminal: [error] [tensorflowCoco:8779f7a.f0b0388] TypeError: Cannot read property 'whereImpl' of undefined. I saw that the node don't load model ....

Before the update the node works fine from a long time.

Raspberry Pi 4 OS Raspberry Node red 1.3.4 node.js v12.22.0

dceejay commented 2 years ago

This is usually caused by an incompatible version of the tfjs bindings being installed... Often it occurs if there is a major upgrade as the node cant tell if the correct ones are present so if an old set are there then they often don't get replaced correctly. Usually totally removing the old bindings and then letting the node reinstall the latest should fix it.

ghost commented 2 years ago

Usually totally removing the old bindings and then letting the node reinstall the latest should fix it.

Done! and this is the new error:

30 Nov 11:57:52 - [error] [tensorflowCoco:7201281427f31ef9] Error: libnode.so.64: cannot open shared object file: No such file or directory

dceejay commented 2 years ago

so.64 ? odd - not sure why it would be looking for 64 bit version. You are using standard 32bit RaspiOS ?

ghost commented 2 years ago

Sorry .. since I can't even find the post with error on ubuntu, I wrote here the error on ubuntu ......

Update don't work on raspberry also (I dont' remember the error), so I load the palette tensorflow (only on raspberry) and it works fine but is slow, very very slow, 60 sec to analyse one image .....

dceejay commented 2 years ago

how large is the image you are analysing... I think the model is trained at around 320x240 - so similar sizes are best.

ghost commented 2 years ago

Ehm ...... 2560x1920 px It's one image from my cam Reolink to verify if there is a car in the parking ......

dceejay commented 2 years ago

try asking the camera for a smaller image.... it will be a lot faster to analyse.

ghost commented 2 years ago

Hi, after removing again the old node and then reinstall all, (in ubuntu) in terminal I saw this error: Error: Request to http://192.168.1.7:1963/coco/model.json failed with status code 401 The path is correct but this is my httpstatic and I protect it in httpNodeAuth setting user and password. If I delete the httpNodeAuth setting the node works fine. It's possible keep user and password without having the error? (or can I set a different path?)

EDIT: also in Raspberry I have the same error; here too (of course) If I delete the httpNodeAuth setting the node works fine. If you give me some suggestions how to fix the error I am ok ....