Comments (5)
two quick questions:
- which backend are you using in browser? webgl or wasm?
- which version of
@tensorflow/tfjs-node
are you using on the server? - how are you loading
faceapi
in the browser? next.js is notorious for trying to do everything using server-side-rendering.
"Sometimes the server does not detect a face in the photos passed, or does not approve a match."
can you elaborate on this? perhaps provide example of image that is processed on both sides and actual results you're getting?
some difference is expected since precision of math operations in browser and in nodejs does vary by a tiny fraction, but it should not be that significant.
from face-api.
Hey Vladimir, thanks for reaching out.
which backend are you using in browser? webgl or wasm?
I'm not completely sure what this is referring to - there isn't an explicit reference to either of these in the code. The sample I gave pretty much covers it - besides importing the package import * as faceapi from '@vladmandic/face-api';
. I can see that @tensorflow/tfjs-backend-webgl
does appear in our package-lock.json.
which version of
@tensorflow/tfjs-node
are you using on the server?
4.2.0
how are you loading
faceapi
in the browser? next.js is notorious for trying to do everything using server-side-rendering.
All of the faceapi logic occurs after the component is mounted, so it is all occurring on the client side.
can you elaborate on this? perhaps provide example of image that is processed on both sides and actual results you're getting?
some difference is expected since precision of math operations in browser and in nodejs does vary by a tiny fraction, but it should not be that significant.
Yes, a sample could ge a good idea - I'll look into creating this.
But I found that when calculating the euclideanDistance, the client could say 0.66 but the server could say 0.64. If our threshold for a "pass" was 0.65, this meant inconsistent results. And yes, sometimes when we passed the exact same photo to the server it didn't detect a face at all.
from face-api.
Difference between 0.64 and 0.66 might be due to node VS browser math precision differences, but if you can provide examples I can take a look.
from face-api.
any updates?
from face-api.
closing due to inactivity, can be reopened if new information is provided.
from face-api.
Related Issues (20)
- Demo Launch Issue HOT 1
- Pitch is not good when Yaw is <-150ΒΊ or >150ΒΊ HOT 1
- Face-api.js In React native HOT 1
- Is it possible to translate it? HOT 1
- Face api gives an error when there are too many photos HOT 3
- Error: Based on the provided shape, [1,1,16,32], the tensor should have 512 values but has 48 HOT 2
- Unhandled Promise Rejection: TypeError: null is not an object (evaluating 'e.isContextLost') HOT 1
- Trying to load tfjs-node externally to be able to deploy on vercel. HOT 2
- Usage with Google Cloud Functions HOT 8
- A bit confusing, old version cpu, gpu issues & new wasm flow HOT 1
- System requirements HOT 1
- node multiprocess on GPU HOT 4
- Object Detection HOT 1
- Can this lib use with RTSP Streaming Video From IP Camera? HOT 2
- Error while using faceapi in angular HOT 1
- Cant we use models from node modules and decrease models file size? HOT 3
- Initialization of backend wasm failed HOT 1
- Detached EventHandlers when running on a Canvas HOT 3
- Support for TSC verbatimModuleSyntax HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from face-api.