Node js real time
See original GitHub issueHello, thank you very much for this library! I’m trying to run a small face detection program in node js. It takes as input a frame read from the webcam and output the detection object. I see that the browser version does realtime detection while with the node version it takes around 350ms per frame which is very low compared.
I took some measures of just the prediction step
console.time("detect")
const detections = await faceapi.detectAllFaces(frame)
console.timeEnd("detect")
detect: 442.732ms detect: 363.256ms detect: 365.847ms detect: 338.513ms detect: 334.374ms detect: 340.412ms detect: 324.549ms detect: 333.849ms detect: 327.226ms detect: 325.315ms detect: 322.517ms detect: 322.398ms
I am already importing the tfjs-node library and I am running the program on a 2,6 GHz Intel Core i7 quad-core 16gb ram MacBook.
I just want to know if that frame rate is common or I am facing slow performances.
Thank you
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5
Top GitHub Comments
@ChrisDalley yes but that was on my MacBook, since I plan to run the app on fewer resources I am looking for a better strategy as you
@ChrisDalley could you able to get any improvement? I am also facing same issue in my MacBook. It is taking ~7.5 sec for each image which is quite a lot in these days. I used GPU as well, but not much difference. Please help if you got any breakthrough.
Thanks in advance.