From 6128a027c212abf1aab9f7ec82f8546b1494f34a Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Sun, 21 Feb 2021 14:06:13 -0500 Subject: [PATCH] build fix --- src/human.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/human.ts b/src/human.ts index 8d911a8e..be8c901e 100644 --- a/src/human.ts +++ b/src/human.ts @@ -288,11 +288,11 @@ class Human { // run emotion, inherits face from blazeface this.analyze('Start Embedding:'); if (this.config.async) { - embeddingRes = this.config.face.embedding.enabled ? embedding.predict(face.image, this.config) : {}; + embeddingRes = this.config.face.embedding.enabled ? embedding.predict(face.image, this.config) : []; } else { this.state = 'run:embedding'; timeStamp = now(); - embeddingRes = this.config.face.embedding.enabled ? await embedding.predict(face.image, this.config) : {}; + embeddingRes = this.config.face.embedding.enabled ? await embedding.predict(face.image, this.config) : []; this.perf.embedding = Math.trunc(now() - timeStamp); } this.analyze('End Emotion:');