Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use mesh model without enabling iris model #56

Closed
ost12666 opened this issue Jan 5, 2021 · 1 comment
Closed

Cannot use mesh model without enabling iris model #56

ost12666 opened this issue Jan 5, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@ost12666
Copy link

ost12666 commented Jan 5, 2021

I get an exception when I call warmup("full"). It works if I enabled the iris model.

Unhandled Rejection (TypeError): Cannot read property '0' of undefined
Human.detectFace
src/human.js:310
307 |
308 | // calculate iris distance
309 | // iris: array[ center, left, top, right, bottom]

310 | const irisSize = (face.annotations.leftEyeIris && face.annotations.rightEyeIris)
| ^ 311 | /* average human iris size is 11.7mm */
312 | ? 11.7 * Math.max(Math.abs(face.annotations.leftEyeIris[3][0] - face.annotations.leftEyeIris[1][0]), Math.abs(face.annotations.rightEyeIris[4][1] - face.annotations.rightEyeIris[2][1]))
313 | : 0;
View compiled
async
src/human.js:392
389 | resolve({ error: 'could not convert input to tensor' });
390 | return;
391 | }
392 | this.perf.image = Math.trunc(now() - timeStamp);
| ^ 393 | this.analyze('Get Image:');
394 |
395 | // run face detection followed by all models that rely on face bounding box: face mesh, age, gender, emotion

@vladmandic vladmandic added the bug Something isn't working label Jan 5, 2021
@vladmandic
Copy link
Owner

fixed via 0417058

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants