justadudewhohacks / face-api.js

JavaScript API for face detection and face recognition in the browser and nodejs with tensorflow.js
MIT License
16.31k stars 3.64k forks source link

SSD Mobilenet v1: not detecting faces on some systems #495

Open Nk911 opened 4 years ago

Nk911 commented 4 years ago

I developed a demo code for face detection using face-api js library, below are the details of model I have used -

Model : SSD Mobilenet v1 Function : faceapi.detectAllFaces(canvasElement)

Demo code is able to detect faces on other system, but it is not working on the systems mentioned below

System Hardware Info: Laptop model : Lenovo Thinkpad L440 CPU : Intel i5 - 4210M RAM : 8 GB Graphics : Intel HD Graphics 4600

System Software Info: OS : Windows 7 ultimate 64-bit Chrome version : 78.0.3904.108 (Official Build)(64-bit)

Observations :

Nk911 commented 4 years ago

Hi @justadudewhohacks ,

There seems an issue with the tfjs webgl backend, Face-api is detecting faces when we use CPU as tfjs backend. It is being fixed by tfjs team. But the current version of face-api is not supporting latest tfjs version. When are you planning to upgrade it?

justadudewhohacks commented 4 years ago

This weekend.

Nk911 commented 4 years ago

Hi @justadudewhohacks, This Issue still persist with the latest version of face-api and tfjs. Code works properly with 'cpu' backend on tfjs but fails to give proper result on 'webgl' backend on tfjs on the system mentioned above. Any suggestions/solution?