Face expression probabilities random on chrome android
See original GitHub issueAfter loading and detecting face from html video element, the probability distribution is correct for a few frames (happy 0.99, sad 0.0000343) etc.
After a few processed frames, the probabilities jump all over the place (see screenshots below).
The same code works fine when using it in chrome on my desktop machine (Nvidia GTX 1060)
Android 8.0.0 Chrome 73.0.3683.90 Samsung Galaxy S7
const model = FaceApiFaceDetectorModel.TINY_FACE_DETECTOR;
const modelBaseUrl = '/assets/tfmodels';
const minConfidence = 0.5;
const inputSize = 256;
const scoreThreshold = 0.5;
const minFaceSize = 200;
await loadFaceDetectorModel(model, modelBaseUrl);
await faceapi.loadFaceExpressionModel(modelBaseUrl);
const options = getFaceDetectorOptions(model, minConfidence, inputSize, scoreThreshold, minFaceSize);
const result = await faceapi.detectSingleFace(video, options).withFaceExpressions();
Might this be some kind of overflow?
Edit: I tried it with the sample application (examples-browser) by updating the “video face tracking” example. The result is the same: Works on desktop, random values on mobile
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Random
If two instances of Random are created with the same seed, ... The values true and false are produced with (approximately) equal probability....
Read more >AffdexMe - Apps on Google Play
AffdexMe demonstrates the use of Affectiva's Affdex Software Developer Kit (SDK), which lets developers emotion-enable their apps and digital experiences.
Read more >Optimizing Android Facial Expressions Using Genetic ...
Relationships between face control positions and genes. Table. Figure 4 shows the facial expression made by EveR from randomly generated genes.
Read more >Correlating Facial Expressions and Contextual Data for Mood ...
introduces OpenFaceAndroid – an Android application based on the existing facial analysis ... facial expression recognition from pictures and videos.
Read more >Manual: Important Classes - Random
The Random class provides you with easy ways of generating various commonly required types of random values. This page provides an overview of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok. All I can do for now is upgrade tfjs-core to latest, which I am working on now.
Update: seems to work now on chrome mobile 74.0.3729.136