vladmandic / face-api

FaceAPI: AI-powered Face Detection & Rotation Tracking, Face Description & Recognition, Age & Gender & Emotion Prediction for Browser and NodeJS using TensorFlow/JS
https://vladmandic.github.io/face-api/demo/webcam.html
MIT License
852 stars 153 forks source link

face_recognition_model.bin #101

Closed perfixel closed 2 years ago

perfixel commented 2 years ago

Discussed in https://github.com/vladmandic/face-api/discussions/100

Originally posted by **perfixel** April 8, 2022 Hello, I've come across a problem where "sometimes" my browser "chrome" fails to load the "face_recognition_model.bin" file giving me the "net::ERR_BLOCKED_BY_CLIENT" error for that file. I noticed that it's a 6 MB+ file. In my project I only use the face detection method. I don't use anything else but detecting the faces .. is there a way to minimize this file size or the whole package to suit only my needs? like only detecting faces. no expressions or age or etc ![download (8)](https://user-images.githubusercontent.com/33189075/162345489-38af6768-6069-4108-b6e1-ca28cfa6c60e.png) ?
vladmandic commented 2 years ago

net::ERR_BLOCKED_BY_CLIENT error is almost always issue with your browser - do you have some extension installed that is misbehaving? for example, ad-blocker.

anyhow, face-api only loads models YOU specified - it does not load everything by default.
you're asking how to load only detection, but check your code - you are yourself loading different models that you say you don't need.