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

Error to recognition #22

Open
ghost opened this issue Sep 1, 2021 · 5 comments
Open

Error to recognition #22

ghost opened this issue Sep 1, 2021 · 5 comments

Comments

@ghost
Copy link

ghost commented Sep 1, 2021

Hi,
I have this error by using your flow ...

"No descriptor file found for 7c9cec36.49682c"
but I have uploaded the image and It seems that the node don't save the description, in fact in my pc I don't find a file 7c9cec36.49682c.json

Can you help me?

PC with Ubuntu 20.04
Node-RED version: v1.2.9
Node.js version: v14.16.0
Linux 5.4.0-81-generic x64 LE

err

@mbrunn
Copy link

mbrunn commented Nov 12, 2021

+1
The given example outputs signal null
If I add my own images, the same "ENOENT" error appears.
@thebigpotatoe How can we help in debugging? See the logs attached.

0|node-red | Platform node has already been set. Overwriting the platform with [object Object].
0|node-red | Child - Error: write EPIPE
0|node-red | Child - Error: write EPIPE
0|node-red | cpu backend was already registered. Reusing existing backend factory.
0|node-red | Platform node has already been set. Overwriting the platform with [object Object].
0|node-red | Child - Error: write EPIPE
0|node-red | cpu backend was already registered. Reusing existing backend factory.
0|node-red | Platform node has already been set. Overwriting the platform with [object Object].
0|node-red | Child - Error: write EPIPE
0|node-red | [Error: ENOENT: no such file or directory, unlink '/home/nodered/.node-red/node_modules/node-red-contrib-face-recognition/app/descriptors/5e02cf9e783be8e6.json'] {
0|node-red | errno: -2,
0|node-red | code: 'ENOENT',
0|node-red | syscall: 'unlink',
0|node-red | path: '/home/nodered/.node-red/node_modules/node-red-contrib-face-recognition/app/descriptors/5e02cf9e783be8e6.json'
0|node-red | }

@thebigpotatoe
Copy link
Owner

Happy to have a look at this issue. But since the example is still working for me, I will need you to describe the exact steps that you took to do this. That way I can try replicate it here on my setup.

@jmorris644
Copy link

I am having the same issue.

"No descriptor file found for 0b73162f0f4ec079"

Here are the steps:

  1. click on pencil to add new face-api...
  2. Enter in name
  3. Click add image button
  4. add image
  5. get message to click "update" to upload, There is no update button Just an "Add" button at the top.
  6. Click Add, then Done, then Deploy. Error message appears.

@jmorris644
Copy link

More info from the node-red-log

When I add an image to a newdescripter I get

7 Jan 10:12:11 - [error] undefined

When I click on the "Add" button I get


(node:76447) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 5)
(node:76447) UnhandledPromiseRejectionWarning: TypeError: engine_1.ENGINE.makeTensor is not a function
    at makeTensor (/home/joe/.node-red/node_modules/tfjs-image-recognition-base/node_modules/@tensorflow/tfjs-core/dist/ops/tensor_ops.js:97:28)
    at Object.tensor (/home/joe/.node-red/node_modules/tfjs-image-recognition-base/node_modules/@tensorflow/tfjs-core/dist/ops/tensor_ops.js:54:12)
    at _loop_2 (/home/joe/.node-red/node_modules/tfjs-image-recognition-base/node_modules/@tensorflow/tfjs-core/dist/io/io_utils.js:219:36)
    at Object.decodeWeights (/home/joe/.node-red/node_modules/tfjs-image-recognition-base/node_modules/@tensorflow/tfjs-core/dist/io/io_utils.js:223:9)
    at /home/joe/.node-red/node_modules/tfjs-image-recognition-base/node_modules/@tensorflow/tfjs-core/dist/io/weights_loader.js:255:66
    at Array.forEach (<anonymous>)
    at /home/joe/.node-red/node_modules/tfjs-image-recognition-base/node_modules/@tensorflow/tfjs-core/dist/io/weights_loader.js:253:44
    at Array.forEach (<anonymous>)
    at Object.<anonymous> (/home/joe/.node-red/node_modules/tfjs-image-recognition-base/node_modules/@tensorflow/tfjs-core/dist/io/weights_loader.js:237:45)
    at step (/home/joe/.node-red/node_modules/tfjs-image-recognition-base/node_modules/@tensorflow/tfjs-core/dist/io/weights_loader.js:48:23)
(node:76447) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 6)
(node:76447) UnhandledPromiseRejectionWarning: TypeError: engine_1.ENGINE.makeTensor is not a function
    at makeTensor (/home/joe/.node-red/node_modules/tfjs-image-recognition-base/node_modules/@tensorflow/tfjs-core/dist/ops/tensor_ops.js:97:28)
    at Object.tensor (/home/joe/.node-red/node_modules/tfjs-image-recognition-base/node_modules/@tensorflow/tfjs-core/dist/ops/tensor_ops.js:54:12)
    at _loop_2 (/home/joe/.node-red/node_modules/tfjs-image-recognition-base/node_modules/@tensorflow/tfjs-core/dist/io/io_utils.js:219:36)
    at Object.decodeWeights (/home/joe/.node-red/node_modules/tfjs-image-recognition-base/node_modules/@tensorflow/tfjs-core/dist/io/io_utils.js:223:9)
    at /home/joe/.node-red/node_modules/tfjs-image-recognition-base/node_modules/@tensorflow/tfjs-core/dist/io/weights_loader.js:255:66
    at Array.forEach (<anonymous>)
    at /home/joe/.node-red/node_modules/tfjs-image-recognition-base/node_modules/@tensorflow/tfjs-core/dist/io/weights_loader.js:253:44
    at Array.forEach (<anonymous>)
    at Object.<anonymous> (/home/joe/.node-red/node_modules/tfjs-image-recognition-base/node_modules/@tensorflow/tfjs-core/dist/io/weights_loader.js:237:45)
    at step (/home/joe/.node-red/node_modules/tfjs-image-recognition-base/node_modules/@tensorflow/tfjs-core/dist/io/weights_loader.js:48:23)
(node:76447) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 7)
(node:76234) UnhandledPromiseRejectionWarning: Child - child_process exited with code 0 and signal null
(node:76234) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 6)

Unrelated but another strange this is that on the debug messages the node ID does not display. I have never seen that before.

@jmorris644
Copy link

I resolved the majority of the issues. Your instructions state to install

npm install @tensorflow/tfjs-node
``
I installed 

npm install @tensorflow/tfjs-node@1.2.11

And then removed and reinstalled face recognition.

All of the errors are gone except for the undefined error that I state above.

One note: I have yet to get a face recognition with my testing. I will report on that when I learn more.

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

3 participants