Git Product home page Git Product logo

Comments (5)

thebigpotatoe avatar thebigpotatoe commented on August 27, 2024

Seems like there arn't any pre-compiled binaries for the raspberry pi 4 with your operating system;

2019-12-26T20:06:58.470Z [err] Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI, glibc) (falling back to source compile with node-gyp)

You may have to compile canvas yourself and its dependencies in your .node-red folder. I haven't installed it on a Pi yet as mine has not been playing ball recently, so i'm not 100% sure exactly how to get canvas going exactly but this may help.

from node-red-contrib-face-recognition.

kent1026 avatar kent1026 commented on August 27, 2024

Thanks, it's work. but when I use npm install @tensorflow/tfjs-node
then node-red debug print :
[Face-api.js : 75ff9e47.e428c : Child Node] - Failed to load in TensorFlow.js for Node.js in child_process: TypeError: tfjs_core_1.registerKernel is not a function"

and Node-Red print error message:

Flows stopped due to missing node types.
face-api-compute
face-api-input

How can i do ?
Thanks.

from node-red-contrib-face-recognition.

thebigpotatoe avatar thebigpotatoe commented on August 27, 2024

To clarify it works without tfjs-node?

With tfjs-node though, having a look on the tfjs-node GitHub page it states you need to rebuild the package on raspberry pi using rebuild @tensorflow/tfjs-node --build-from-source

from node-red-contrib-face-recognition.

kent1026 avatar kent1026 commented on August 27, 2024

Thanks, but I can't rebuild tensorflow

print:

pi@raspberrypi:~/.node-red$ npm rebuild @tensorflow/tfjs-node --build-from-source                                                                               │··········
                                                                                                                                                                │··········
> @tensorflow/[email protected] install /home/pi/.node-red/node_modules/@tensorflow/tfjs-node                                                                     │··········
> node scripts/install.js                                                                                                                                       │··········
                                                                                                                                                                │··········
CPU-linux-1.5.1.tar.gz                                                                                                                                          │··········
* Downloading libtensorflow                                                                                                                                     │··········
(node:4484) UnhandledPromiseRejectionWarning: Error: Unsupported system: cpu-linux-arm                                                                          │··········
    at getPlatformLibtensorflowUri (/home/pi/.node-red/node_modules/@tensorflow/tfjs-node/scripts/install.js:95:11)                                             │··········
    at downloadLibtensorflow (/home/pi/.node-red/node_modules/@tensorflow/tfjs-node/scripts/install.js:129:7)                                                   │··········
    at async run (/home/pi/.node-red/node_modules/@tensorflow/tfjs-node/scripts/install.js:190:5)                                                               │··········
(node:4484) 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(). (rejection id: 1)                                                                         │··········
(node:4484) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the│··········
 Node.js process with a non-zero exit code.                                                                                                                     │··········
@tensorflow/[email protected] /home/pi/.node-red/node_modules/@tensorflow/tfjs-node 

and I follow this Running face-api.js or tfjs-node on a raspberry pi and node.js
it can't work too

from node-red-contrib-face-recognition.

thebigpotatoe avatar thebigpotatoe commented on August 27, 2024

These errors are not unique to this repo, and as I have stated, I have not attempted to run this on a raspberry pi 4. So I will be closing this issue as this space should be used for tracking issues unique to this repo, not issues related to getting tfjs installed on a Pi. If you have an issue during running or using this repo after a successful installation feel free to pop open another one.

Some help though; I am still earning JS and how to manage it through NPM myself, but your error messages seem to suggest that the pi and the operating system you are running are not supported by the required libraries (yet?). My suggestion is to browse the tfjs-node repo and face-api.js repo for raspberry pi issues and answers.

I have noticed that you are running node 10.18.0 from the above messages, so I would suggest updating that for a start. Then you may be able to follow those steps in the link you supplied.

When I was building this, I found that the basic Face-api.js worked out of the box easily, but getting tfjs-node to run as well was painful. I am using windows, and as in the readme, I found a specific setup that worked for me. You will need to do the same as I have not used a pi for testing.

from node-red-contrib-face-recognition.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.