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
850 stars 151 forks source link

Cant we use models from node modules and decrease models file size? #184

Closed chaitanya71998 closed 10 months ago

chaitanya71998 commented 10 months ago

Issue Description Greetings, thanks for your lib. i have two issues

  1. The models are need to be maintained in public folder
    • cant we use the models that are already there in nodemodules?
  2. For my use case i am solving to build a face authentication web app using facematcher api. The models are of very high mb size,and are big blocker for authentication and getting to web app.
    • how can we solve this?

Steps to Reproduce

  1. In node modules Screenshot from 2023-12-08 10-16-32

  2. From network panel image

Expected Behavior Fast loading of models and finish authentication **Environment Web

vladmandic commented 10 months ago

i really don't understand what the ask is here - model size is what is it is regardless where its downloaded from. you can download from cdn, copy to your public folder, expose node_modules directly - anything.

chaitanya71998 commented 10 months ago

dont we have lower sized models, as these models are having very big file size

vladmandic commented 10 months ago

No. And this is considered quite small.