From 6ffe7cb3642de0d23d6535d706a90ee7af2f873c Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Fri, 15 Apr 2022 07:54:27 -0400 Subject: [PATCH] enable precompile as part of warmup --- CHANGELOG.md | 4 +- TODO.md | 18 +- demo/typescript/index.js | 4 +- demo/typescript/index.js.map | 4 +- demo/typescript/index.ts | 4 +- package.json | 4 +- src/warmup.ts | 25 +- test/build.log | 48 +- test/test.log | 1368 +++++++++++++++++----------------- tfjs/tf-version.ts | 4 +- 10 files changed, 745 insertions(+), 738 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d942256..f7bed803 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,9 +11,7 @@ ### **HEAD -> main** 2022/04/14 mandic00@live.com - -### **origin/main** 2022/04/11 mandic00@live.com - +- change default face crop - face attention model is available in human-models - beta release 2.7 - refactor draw methods diff --git a/TODO.md b/TODO.md index 79d16580..4f702981 100644 --- a/TODO.md +++ b/TODO.md @@ -3,17 +3,19 @@ ## Work in Progress Release 2.7: -- add MediaPipe FaceMesh attention model - model is available in @vladmandic/human-models repository +- Add **MediaPipe FaceMesh-with-Attention** model + model is available in `@vladmandic/human-models` repository to enable, set `config.face.attention = true` - model replaces iris and eyes keypoints with high-detailed ones - and adds additional keypoints for lips -- changed default face crop from 120% to 140% + model replaces **iris**, **eyes** and **lips** keypoints with high-detailed ones +- Add model **pre-compile** phase to `warmup` method + result is speed-up to first inference by around ~30% for browser environments +- Changed default face crop from 120% to 140% to better utilize caching between frames -- refactor draw methods into separate modules -- add **ElectronJS** demo +- Refactor **draw** methods into separate modules +- Add **ElectronJS** demo see -- update build platform and dependencies +- Update build platform and dependencies +- Update **TFJS** ### Exploring diff --git a/demo/typescript/index.js b/demo/typescript/index.js index d1025ce8..271c9736 100644 --- a/demo/typescript/index.js +++ b/demo/typescript/index.js @@ -4,8 +4,8 @@ author: ' */ -import{Human as p}from"../../dist/human.esm.js";var w={modelBasePath:"../../models",filter:{enabled:!0,equalization:!1},cacheSensitivity:0,face:{enabled:!0,detector:{rotation:!1},mesh:{enabled:!0},attention:{enabled:!1},iris:{enabled:!0},description:{enabled:!0},emotion:{enabled:!0}},body:{enabled:!0},hand:{enabled:!0},object:{enabled:!0},gesture:{enabled:!0}},t=new p(w);t.env.perfadd=!1;t.draw.options.font='small-caps 18px "Lato"';t.draw.options.lineHeight=20;var e={video:document.getElementById("video"),canvas:document.getElementById("canvas"),log:document.getElementById("log"),fps:document.getElementById("status"),perf:document.getElementById("performance")},i={detect:0,draw:0,tensors:0},d={detect:0,draw:0},s=(...a)=>{e.log.innerText+=a.join(" ")+` -`,console.log(...a)},r=a=>e.fps.innerText=a,b=a=>e.perf.innerText="tensors:"+t.tf.memory().numTensors+" | performance: "+JSON.stringify(a).replace(/"|{|}/g,"").replace(/,/g," | ");async function h(){r("starting webcam...");let a={audio:!1,video:{facingMode:"user",resizeMode:"none",width:{ideal:document.body.clientWidth}}},n=await navigator.mediaDevices.getUserMedia(a),m=new Promise(f=>{e.video.onloadeddata=()=>f(!0)});e.video.srcObject=n,e.video.play(),await m,e.canvas.width=e.video.videoWidth,e.canvas.height=e.video.videoHeight;let o=n.getVideoTracks()[0],v=o.getCapabilities?o.getCapabilities():"",u=o.getSettings?o.getSettings():"",g=o.getConstraints?o.getConstraints():"";s("video:",e.video.videoWidth,e.video.videoHeight,o.label,{stream:n,track:o,settings:u,constraints:g,capabilities:v}),e.canvas.onclick=()=>{e.video.paused?e.video.play():e.video.pause()}}async function c(){if(!e.video.paused){await t.detect(e.video);let n=t.tf.memory().numTensors;n-i.tensors!==0&&s("allocated tensors:",n-i.tensors),i.tensors=n}let a=t.now();d.detect=1e3/(a-i.detect),i.detect=a,requestAnimationFrame(c)}async function l(){if(!e.video.paused){let n=await t.next(t.result);await t.draw.canvas(e.video,e.canvas),await t.draw.all(e.canvas,n),b(n.performance)}let a=t.now();d.draw=1e3/(a-i.draw),i.draw=a,r(e.video.paused?"paused":`fps: ${d.detect.toFixed(1).padStart(5," ")} detect | ${d.draw.toFixed(1).padStart(5," ")} draw`),setTimeout(l,30)}async function y(){s("human version:",t.version,"| tfjs version:",t.tf.version["tfjs-core"]),s("platform:",t.env.platform,"| agent:",t.env.agent),r("loading..."),await t.load(),s("backend:",t.tf.getBackend(),"| available:",t.env.backends),s("loaded models:",Object.values(t.models).filter(a=>a!==null).length),r("initializing..."),await t.warmup(),await h(),await c(),await l()}window.onload=y; +import{Human as p}from"../../dist/human.esm.js";var w={modelBasePath:"../../models",filter:{enabled:!0,equalization:!1},face:{enabled:!0,detector:{rotation:!1},mesh:{enabled:!0},attention:{enabled:!1},iris:{enabled:!0},description:{enabled:!0},emotion:{enabled:!0}},body:{enabled:!0},hand:{enabled:!0},object:{enabled:!1},gesture:{enabled:!0}},t=new p(w);t.env.perfadd=!1;t.draw.options.font='small-caps 18px "Lato"';t.draw.options.lineHeight=20;var e={video:document.getElementById("video"),canvas:document.getElementById("canvas"),log:document.getElementById("log"),fps:document.getElementById("status"),perf:document.getElementById("performance")},i={detect:0,draw:0,tensors:0},d={detect:0,draw:0},s=(...a)=>{e.log.innerText+=a.join(" ")+` +`,console.log(...a)},r=a=>e.fps.innerText=a,b=a=>e.perf.innerText="tensors:"+t.tf.memory().numTensors+" | performance: "+JSON.stringify(a).replace(/"|{|}/g,"").replace(/,/g," | ");async function h(){r("starting webcam...");let a={audio:!1,video:{facingMode:"user",resizeMode:"none",width:{ideal:document.body.clientWidth}}},n=await navigator.mediaDevices.getUserMedia(a),m=new Promise(f=>{e.video.onloadeddata=()=>f(!0)});e.video.srcObject=n,e.video.play(),await m,e.canvas.width=e.video.videoWidth,e.canvas.height=e.video.videoHeight;let o=n.getVideoTracks()[0],v=o.getCapabilities?o.getCapabilities():"",g=o.getSettings?o.getSettings():"",u=o.getConstraints?o.getConstraints():"";s("video:",e.video.videoWidth,e.video.videoHeight,o.label,{stream:n,track:o,settings:g,constraints:u,capabilities:v}),e.canvas.onclick=()=>{e.video.paused?e.video.play():e.video.pause()}}async function c(){if(!e.video.paused){await t.detect(e.video);let n=t.tf.memory().numTensors;n-i.tensors!==0&&s("allocated tensors:",n-i.tensors),i.tensors=n}let a=t.now();d.detect=1e3/(a-i.detect),i.detect=a,requestAnimationFrame(c)}async function l(){if(!e.video.paused){let n=await t.next(t.result);await t.draw.canvas(e.video,e.canvas),await t.draw.all(e.canvas,n),b(n.performance)}let a=t.now();d.draw=1e3/(a-i.draw),i.draw=a,r(e.video.paused?"paused":`fps: ${d.detect.toFixed(1).padStart(5," ")} detect | ${d.draw.toFixed(1).padStart(5," ")} draw`),setTimeout(l,30)}async function y(){s("human version:",t.version,"| tfjs version:",t.tf.version["tfjs-core"]),s("platform:",t.env.platform,"| agent:",t.env.agent),r("loading..."),await t.load(),s("backend:",t.tf.getBackend(),"| available:",t.env.backends),s("loaded models:",Object.values(t.models).filter(a=>a!==null).length),r("initializing..."),await t.warmup(),await h(),await c(),await l()}window.onload=y; /** * Human demo for browsers * @default Human Library diff --git a/demo/typescript/index.js.map b/demo/typescript/index.js.map index 3c244fca..11e7c7e8 100644 --- a/demo/typescript/index.js.map +++ b/demo/typescript/index.js.map @@ -1,7 +1,7 @@ { "version": 3, "sources": ["index.ts"], - "sourcesContent": ["/**\n * Human demo for browsers\n * @default Human Library\n * @summary \n * @author \n * @copyright \n * @license MIT\n */\n\nimport { Human, Config } from '../../dist/human.esm.js'; // equivalent of @vladmandic/Human\n\nconst humanConfig: Partial = { // user configuration for human, used to fine-tune behavior\n // backend: 'webgpu' as const,\n // async: true,\n modelBasePath: '../../models',\n filter: { enabled: true, equalization: false },\n cacheSensitivity: 0,\n face: { enabled: true, detector: { rotation: false }, mesh: { enabled: true }, attention: { enabled: false }, iris: { enabled: true }, description: { enabled: true }, emotion: { enabled: true } },\n body: { enabled: true },\n hand: { enabled: true },\n object: { enabled: true },\n gesture: { enabled: true },\n};\n\nconst human = new Human(humanConfig); // create instance of human with overrides from user configuration\n\nhuman.env['perfadd'] = false; // is performance data showing instant or total values\nhuman.draw.options.font = 'small-caps 18px \"Lato\"'; // set font used to draw labels when using draw methods\nhuman.draw.options.lineHeight = 20;\n\nconst dom = { // grab instances of dom objects so we dont have to look them up later\n video: document.getElementById('video') as HTMLVideoElement,\n canvas: document.getElementById('canvas') as HTMLCanvasElement,\n log: document.getElementById('log') as HTMLPreElement,\n fps: document.getElementById('status') as HTMLPreElement,\n perf: document.getElementById('performance') as HTMLDivElement,\n};\nconst timestamp = { detect: 0, draw: 0, tensors: 0 }; // holds information used to calculate performance and possible memory leaks\nconst fps = { detect: 0, draw: 0 }; // holds calculated fps information for both detect and screen refresh\n\nconst log = (...msg) => { // helper method to output messages\n dom.log.innerText += msg.join(' ') + '\\n';\n // eslint-disable-next-line no-console\n console.log(...msg);\n};\nconst status = (msg) => dom.fps.innerText = msg; // print status element\nconst perf = (msg) => dom.perf.innerText = 'tensors:' + human.tf.memory().numTensors + ' | performance: ' + JSON.stringify(msg).replace(/\"|{|}/g, '').replace(/,/g, ' | '); // print performance element\n\nasync function webCam() { // initialize webcam\n status('starting webcam...');\n // @ts-ignore resizeMode is not yet defined in tslib\n const options: MediaStreamConstraints = { audio: false, video: { facingMode: 'user', resizeMode: 'none', width: { ideal: document.body.clientWidth } } };\n const stream: MediaStream = await navigator.mediaDevices.getUserMedia(options);\n const ready = new Promise((resolve) => { dom.video.onloadeddata = () => resolve(true); });\n dom.video.srcObject = stream;\n dom.video.play();\n await ready;\n dom.canvas.width = dom.video.videoWidth;\n dom.canvas.height = dom.video.videoHeight;\n const track: MediaStreamTrack = stream.getVideoTracks()[0];\n const capabilities: MediaTrackCapabilities | string = track.getCapabilities ? track.getCapabilities() : '';\n const settings: MediaTrackSettings | string = track.getSettings ? track.getSettings() : '';\n const constraints: MediaTrackConstraints | string = track.getConstraints ? track.getConstraints() : '';\n log('video:', dom.video.videoWidth, dom.video.videoHeight, track.label, { stream, track, settings, constraints, capabilities });\n dom.canvas.onclick = () => { // pause when clicked on screen and resume on next click\n if (dom.video.paused) dom.video.play();\n else dom.video.pause();\n };\n}\n\nasync function detectionLoop() { // main detection loop\n if (!dom.video.paused) {\n // console.log('profiling data:', await human.profile(dom.video));\n await human.detect(dom.video); // actual detection; were not capturing output in a local variable as it can also be reached via human.result\n const tensors = human.tf.memory().numTensors; // check current tensor usage for memory leaks\n if (tensors - timestamp.tensors !== 0) log('allocated tensors:', tensors - timestamp.tensors); // printed on start and each time there is a tensor leak\n timestamp.tensors = tensors;\n }\n const now = human.now();\n fps.detect = 1000 / (now - timestamp.detect);\n timestamp.detect = now;\n requestAnimationFrame(detectionLoop); // start new frame immediately\n}\n\nasync function drawLoop() { // main screen refresh loop\n if (!dom.video.paused) {\n const interpolated = await human.next(human.result); // smoothen result using last-known results\n await human.draw.canvas(dom.video, dom.canvas); // draw canvas to screen\n await human.draw.all(dom.canvas, interpolated); // draw labels, boxes, lines, etc.\n perf(interpolated.performance); // write performance data\n }\n const now = human.now();\n fps.draw = 1000 / (now - timestamp.draw);\n timestamp.draw = now;\n status(dom.video.paused ? 'paused' : `fps: ${fps.detect.toFixed(1).padStart(5, ' ')} detect | ${fps.draw.toFixed(1).padStart(5, ' ')} draw`); // write status\n // requestAnimationFrame(drawLoop); // refresh at screen refresh rate\n setTimeout(drawLoop, 30); // use to slow down refresh from max refresh rate to target of 30 fps\n}\n\nasync function main() { // main entry point\n log('human version:', human.version, '| tfjs version:', human.tf.version['tfjs-core']);\n log('platform:', human.env.platform, '| agent:', human.env.agent);\n status('loading...');\n await human.load(); // preload all models\n log('backend:', human.tf.getBackend(), '| available:', human.env.backends);\n log('loaded models:', Object.values(human.models).filter((model) => model !== null).length);\n status('initializing...');\n await human.warmup(); // warmup function to initialize backend for future faster detection\n await webCam(); // start webcam\n await detectionLoop(); // start detection loop\n await drawLoop(); // start draw loop\n}\n\nwindow.onload = main;\n"], - "mappings": ";;;;;;AASA,gDATA,AAWA,GAAM,GAA+B,CAGnC,cAAe,eACf,OAAQ,CAAE,QAAS,GAAM,aAAc,EAAM,EAC7C,iBAAkB,EAClB,KAAM,CAAE,QAAS,GAAM,SAAU,CAAE,SAAU,EAAM,EAAG,KAAM,CAAE,QAAS,EAAK,EAAG,UAAW,CAAE,QAAS,EAAM,EAAG,KAAM,CAAE,QAAS,EAAK,EAAG,YAAa,CAAE,QAAS,EAAK,EAAG,QAAS,CAAE,QAAS,EAAK,CAAE,EAClM,KAAM,CAAE,QAAS,EAAK,EACtB,KAAM,CAAE,QAAS,EAAK,EACtB,OAAQ,CAAE,QAAS,EAAK,EACxB,QAAS,CAAE,QAAS,EAAK,CAC3B,EAEM,EAAQ,GAAI,GAAM,CAAW,EAEnC,EAAM,IAAI,QAAa,GACvB,EAAM,KAAK,QAAQ,KAAO,yBAC1B,EAAM,KAAK,QAAQ,WAAa,GAEhC,GAAM,GAAM,CACV,MAAO,SAAS,eAAe,OAAO,EACtC,OAAQ,SAAS,eAAe,QAAQ,EACxC,IAAK,SAAS,eAAe,KAAK,EAClC,IAAK,SAAS,eAAe,QAAQ,EACrC,KAAM,SAAS,eAAe,aAAa,CAC7C,EACM,EAAY,CAAE,OAAQ,EAAG,KAAM,EAAG,QAAS,CAAE,EAC7C,EAAM,CAAE,OAAQ,EAAG,KAAM,CAAE,EAE3B,EAAM,IAAI,IAAQ,CACtB,EAAI,IAAI,WAAa,EAAI,KAAK,GAAG,EAAI;AAAA,EAErC,QAAQ,IAAI,GAAG,CAAG,CACpB,EACM,EAAS,AAAC,GAAQ,EAAI,IAAI,UAAY,EACtC,EAAO,AAAC,GAAQ,EAAI,KAAK,UAAY,WAAa,EAAM,GAAG,OAAO,EAAE,WAAa,mBAAqB,KAAK,UAAU,CAAG,EAAE,QAAQ,SAAU,EAAE,EAAE,QAAQ,KAAM,KAAK,EAEzK,kBAAwB,CACtB,EAAO,oBAAoB,EAE3B,GAAM,GAAkC,CAAE,MAAO,GAAO,MAAO,CAAE,WAAY,OAAQ,WAAY,OAAQ,MAAO,CAAE,MAAO,SAAS,KAAK,WAAY,CAAE,CAAE,EACjJ,EAAsB,KAAM,WAAU,aAAa,aAAa,CAAO,EACvE,EAAQ,GAAI,SAAQ,AAAC,GAAY,CAAE,EAAI,MAAM,aAAe,IAAM,EAAQ,EAAI,CAAG,CAAC,EACxF,EAAI,MAAM,UAAY,EACtB,EAAI,MAAM,KAAK,EACf,KAAM,GACN,EAAI,OAAO,MAAQ,EAAI,MAAM,WAC7B,EAAI,OAAO,OAAS,EAAI,MAAM,YAC9B,GAAM,GAA0B,EAAO,eAAe,EAAE,GAClD,EAAgD,EAAM,gBAAkB,EAAM,gBAAgB,EAAI,GAClG,EAAwC,EAAM,YAAc,EAAM,YAAY,EAAI,GAClF,EAA8C,EAAM,eAAiB,EAAM,eAAe,EAAI,GACpG,EAAI,SAAU,EAAI,MAAM,WAAY,EAAI,MAAM,YAAa,EAAM,MAAO,CAAE,SAAQ,QAAO,WAAU,cAAa,cAAa,CAAC,EAC9H,EAAI,OAAO,QAAU,IAAM,CACzB,AAAI,EAAI,MAAM,OAAQ,EAAI,MAAM,KAAK,EAChC,EAAI,MAAM,MAAM,CACvB,CACF,CAEA,kBAA+B,CAC7B,GAAI,CAAC,EAAI,MAAM,OAAQ,CAErB,KAAM,GAAM,OAAO,EAAI,KAAK,EAC5B,GAAM,GAAU,EAAM,GAAG,OAAO,EAAE,WAClC,AAAI,EAAU,EAAU,UAAY,GAAG,EAAI,qBAAsB,EAAU,EAAU,OAAO,EAC5F,EAAU,QAAU,CACtB,CACA,GAAM,GAAM,EAAM,IAAI,EACtB,EAAI,OAAS,IAAQ,GAAM,EAAU,QACrC,EAAU,OAAS,EACnB,sBAAsB,CAAa,CACrC,CAEA,kBAA0B,CACxB,GAAI,CAAC,EAAI,MAAM,OAAQ,CACrB,GAAM,GAAe,KAAM,GAAM,KAAK,EAAM,MAAM,EAClD,KAAM,GAAM,KAAK,OAAO,EAAI,MAAO,EAAI,MAAM,EAC7C,KAAM,GAAM,KAAK,IAAI,EAAI,OAAQ,CAAY,EAC7C,EAAK,EAAa,WAAW,CAC/B,CACA,GAAM,GAAM,EAAM,IAAI,EACtB,EAAI,KAAO,IAAQ,GAAM,EAAU,MACnC,EAAU,KAAO,EACjB,EAAO,EAAI,MAAM,OAAS,SAAW,QAAQ,EAAI,OAAO,QAAQ,CAAC,EAAE,SAAS,EAAG,GAAG,cAAc,EAAI,KAAK,QAAQ,CAAC,EAAE,SAAS,EAAG,GAAG,QAAQ,EAE3I,WAAW,EAAU,EAAE,CACzB,CAEA,kBAAsB,CACpB,EAAI,iBAAkB,EAAM,QAAS,kBAAmB,EAAM,GAAG,QAAQ,YAAY,EACrF,EAAI,YAAa,EAAM,IAAI,SAAU,WAAY,EAAM,IAAI,KAAK,EAChE,EAAO,YAAY,EACnB,KAAM,GAAM,KAAK,EACjB,EAAI,WAAY,EAAM,GAAG,WAAW,EAAG,eAAgB,EAAM,IAAI,QAAQ,EACzE,EAAI,iBAAkB,OAAO,OAAO,EAAM,MAAM,EAAE,OAAO,AAAC,GAAU,IAAU,IAAI,EAAE,MAAM,EAC1F,EAAO,iBAAiB,EACxB,KAAM,GAAM,OAAO,EACnB,KAAM,GAAO,EACb,KAAM,GAAc,EACpB,KAAM,GAAS,CACjB,CAEA,OAAO,OAAS", + "sourcesContent": ["/**\n * Human demo for browsers\n * @default Human Library\n * @summary \n * @author \n * @copyright \n * @license MIT\n */\n\nimport { Human, Config } from '../../dist/human.esm.js'; // equivalent of @vladmandic/Human\n\nconst humanConfig: Partial = { // user configuration for human, used to fine-tune behavior\n // backend: 'webgpu' as const,\n // async: true,\n modelBasePath: '../../models',\n filter: { enabled: true, equalization: false },\n // cacheSensitivity: 0,\n face: { enabled: true, detector: { rotation: false }, mesh: { enabled: true }, attention: { enabled: false }, iris: { enabled: true }, description: { enabled: true }, emotion: { enabled: true } },\n body: { enabled: true },\n hand: { enabled: true },\n object: { enabled: false },\n gesture: { enabled: true },\n};\n\nconst human = new Human(humanConfig); // create instance of human with overrides from user configuration\n\nhuman.env['perfadd'] = false; // is performance data showing instant or total values\nhuman.draw.options.font = 'small-caps 18px \"Lato\"'; // set font used to draw labels when using draw methods\nhuman.draw.options.lineHeight = 20;\n\nconst dom = { // grab instances of dom objects so we dont have to look them up later\n video: document.getElementById('video') as HTMLVideoElement,\n canvas: document.getElementById('canvas') as HTMLCanvasElement,\n log: document.getElementById('log') as HTMLPreElement,\n fps: document.getElementById('status') as HTMLPreElement,\n perf: document.getElementById('performance') as HTMLDivElement,\n};\nconst timestamp = { detect: 0, draw: 0, tensors: 0 }; // holds information used to calculate performance and possible memory leaks\nconst fps = { detect: 0, draw: 0 }; // holds calculated fps information for both detect and screen refresh\n\nconst log = (...msg) => { // helper method to output messages\n dom.log.innerText += msg.join(' ') + '\\n';\n // eslint-disable-next-line no-console\n console.log(...msg);\n};\nconst status = (msg) => dom.fps.innerText = msg; // print status element\nconst perf = (msg) => dom.perf.innerText = 'tensors:' + human.tf.memory().numTensors + ' | performance: ' + JSON.stringify(msg).replace(/\"|{|}/g, '').replace(/,/g, ' | '); // print performance element\n\nasync function webCam() { // initialize webcam\n status('starting webcam...');\n // @ts-ignore resizeMode is not yet defined in tslib\n const options: MediaStreamConstraints = { audio: false, video: { facingMode: 'user', resizeMode: 'none', width: { ideal: document.body.clientWidth } } };\n const stream: MediaStream = await navigator.mediaDevices.getUserMedia(options);\n const ready = new Promise((resolve) => { dom.video.onloadeddata = () => resolve(true); });\n dom.video.srcObject = stream;\n dom.video.play();\n await ready;\n dom.canvas.width = dom.video.videoWidth;\n dom.canvas.height = dom.video.videoHeight;\n const track: MediaStreamTrack = stream.getVideoTracks()[0];\n const capabilities: MediaTrackCapabilities | string = track.getCapabilities ? track.getCapabilities() : '';\n const settings: MediaTrackSettings | string = track.getSettings ? track.getSettings() : '';\n const constraints: MediaTrackConstraints | string = track.getConstraints ? track.getConstraints() : '';\n log('video:', dom.video.videoWidth, dom.video.videoHeight, track.label, { stream, track, settings, constraints, capabilities });\n dom.canvas.onclick = () => { // pause when clicked on screen and resume on next click\n if (dom.video.paused) dom.video.play();\n else dom.video.pause();\n };\n}\n\nasync function detectionLoop() { // main detection loop\n if (!dom.video.paused) {\n // console.log('profiling data:', await human.profile(dom.video));\n await human.detect(dom.video); // actual detection; were not capturing output in a local variable as it can also be reached via human.result\n const tensors = human.tf.memory().numTensors; // check current tensor usage for memory leaks\n if (tensors - timestamp.tensors !== 0) log('allocated tensors:', tensors - timestamp.tensors); // printed on start and each time there is a tensor leak\n timestamp.tensors = tensors;\n }\n const now = human.now();\n fps.detect = 1000 / (now - timestamp.detect);\n timestamp.detect = now;\n requestAnimationFrame(detectionLoop); // start new frame immediately\n}\n\nasync function drawLoop() { // main screen refresh loop\n if (!dom.video.paused) {\n const interpolated = await human.next(human.result); // smoothen result using last-known results\n await human.draw.canvas(dom.video, dom.canvas); // draw canvas to screen\n await human.draw.all(dom.canvas, interpolated); // draw labels, boxes, lines, etc.\n perf(interpolated.performance); // write performance data\n }\n const now = human.now();\n fps.draw = 1000 / (now - timestamp.draw);\n timestamp.draw = now;\n status(dom.video.paused ? 'paused' : `fps: ${fps.detect.toFixed(1).padStart(5, ' ')} detect | ${fps.draw.toFixed(1).padStart(5, ' ')} draw`); // write status\n // requestAnimationFrame(drawLoop); // refresh at screen refresh rate\n setTimeout(drawLoop, 30); // use to slow down refresh from max refresh rate to target of 30 fps\n}\n\nasync function main() { // main entry point\n log('human version:', human.version, '| tfjs version:', human.tf.version['tfjs-core']);\n log('platform:', human.env.platform, '| agent:', human.env.agent);\n status('loading...');\n await human.load(); // preload all models\n log('backend:', human.tf.getBackend(), '| available:', human.env.backends);\n log('loaded models:', Object.values(human.models).filter((model) => model !== null).length);\n status('initializing...');\n await human.warmup(); // warmup function to initialize backend for future faster detection\n await webCam(); // start webcam\n await detectionLoop(); // start detection loop\n await drawLoop(); // start draw loop\n}\n\nwindow.onload = main;\n"], + "mappings": ";;;;;;AASA,gDATA,AAWA,GAAM,GAA+B,CAGnC,cAAe,eACf,OAAQ,CAAE,QAAS,GAAM,aAAc,EAAM,EAE7C,KAAM,CAAE,QAAS,GAAM,SAAU,CAAE,SAAU,EAAM,EAAG,KAAM,CAAE,QAAS,EAAK,EAAG,UAAW,CAAE,QAAS,EAAM,EAAG,KAAM,CAAE,QAAS,EAAK,EAAG,YAAa,CAAE,QAAS,EAAK,EAAG,QAAS,CAAE,QAAS,EAAK,CAAE,EAClM,KAAM,CAAE,QAAS,EAAK,EACtB,KAAM,CAAE,QAAS,EAAK,EACtB,OAAQ,CAAE,QAAS,EAAM,EACzB,QAAS,CAAE,QAAS,EAAK,CAC3B,EAEM,EAAQ,GAAI,GAAM,CAAW,EAEnC,EAAM,IAAI,QAAa,GACvB,EAAM,KAAK,QAAQ,KAAO,yBAC1B,EAAM,KAAK,QAAQ,WAAa,GAEhC,GAAM,GAAM,CACV,MAAO,SAAS,eAAe,OAAO,EACtC,OAAQ,SAAS,eAAe,QAAQ,EACxC,IAAK,SAAS,eAAe,KAAK,EAClC,IAAK,SAAS,eAAe,QAAQ,EACrC,KAAM,SAAS,eAAe,aAAa,CAC7C,EACM,EAAY,CAAE,OAAQ,EAAG,KAAM,EAAG,QAAS,CAAE,EAC7C,EAAM,CAAE,OAAQ,EAAG,KAAM,CAAE,EAE3B,EAAM,IAAI,IAAQ,CACtB,EAAI,IAAI,WAAa,EAAI,KAAK,GAAG,EAAI;AAAA,EAErC,QAAQ,IAAI,GAAG,CAAG,CACpB,EACM,EAAS,AAAC,GAAQ,EAAI,IAAI,UAAY,EACtC,EAAO,AAAC,GAAQ,EAAI,KAAK,UAAY,WAAa,EAAM,GAAG,OAAO,EAAE,WAAa,mBAAqB,KAAK,UAAU,CAAG,EAAE,QAAQ,SAAU,EAAE,EAAE,QAAQ,KAAM,KAAK,EAEzK,kBAAwB,CACtB,EAAO,oBAAoB,EAE3B,GAAM,GAAkC,CAAE,MAAO,GAAO,MAAO,CAAE,WAAY,OAAQ,WAAY,OAAQ,MAAO,CAAE,MAAO,SAAS,KAAK,WAAY,CAAE,CAAE,EACjJ,EAAsB,KAAM,WAAU,aAAa,aAAa,CAAO,EACvE,EAAQ,GAAI,SAAQ,AAAC,GAAY,CAAE,EAAI,MAAM,aAAe,IAAM,EAAQ,EAAI,CAAG,CAAC,EACxF,EAAI,MAAM,UAAY,EACtB,EAAI,MAAM,KAAK,EACf,KAAM,GACN,EAAI,OAAO,MAAQ,EAAI,MAAM,WAC7B,EAAI,OAAO,OAAS,EAAI,MAAM,YAC9B,GAAM,GAA0B,EAAO,eAAe,EAAE,GAClD,EAAgD,EAAM,gBAAkB,EAAM,gBAAgB,EAAI,GAClG,EAAwC,EAAM,YAAc,EAAM,YAAY,EAAI,GAClF,EAA8C,EAAM,eAAiB,EAAM,eAAe,EAAI,GACpG,EAAI,SAAU,EAAI,MAAM,WAAY,EAAI,MAAM,YAAa,EAAM,MAAO,CAAE,SAAQ,QAAO,WAAU,cAAa,cAAa,CAAC,EAC9H,EAAI,OAAO,QAAU,IAAM,CACzB,AAAI,EAAI,MAAM,OAAQ,EAAI,MAAM,KAAK,EAChC,EAAI,MAAM,MAAM,CACvB,CACF,CAEA,kBAA+B,CAC7B,GAAI,CAAC,EAAI,MAAM,OAAQ,CAErB,KAAM,GAAM,OAAO,EAAI,KAAK,EAC5B,GAAM,GAAU,EAAM,GAAG,OAAO,EAAE,WAClC,AAAI,EAAU,EAAU,UAAY,GAAG,EAAI,qBAAsB,EAAU,EAAU,OAAO,EAC5F,EAAU,QAAU,CACtB,CACA,GAAM,GAAM,EAAM,IAAI,EACtB,EAAI,OAAS,IAAQ,GAAM,EAAU,QACrC,EAAU,OAAS,EACnB,sBAAsB,CAAa,CACrC,CAEA,kBAA0B,CACxB,GAAI,CAAC,EAAI,MAAM,OAAQ,CACrB,GAAM,GAAe,KAAM,GAAM,KAAK,EAAM,MAAM,EAClD,KAAM,GAAM,KAAK,OAAO,EAAI,MAAO,EAAI,MAAM,EAC7C,KAAM,GAAM,KAAK,IAAI,EAAI,OAAQ,CAAY,EAC7C,EAAK,EAAa,WAAW,CAC/B,CACA,GAAM,GAAM,EAAM,IAAI,EACtB,EAAI,KAAO,IAAQ,GAAM,EAAU,MACnC,EAAU,KAAO,EACjB,EAAO,EAAI,MAAM,OAAS,SAAW,QAAQ,EAAI,OAAO,QAAQ,CAAC,EAAE,SAAS,EAAG,GAAG,cAAc,EAAI,KAAK,QAAQ,CAAC,EAAE,SAAS,EAAG,GAAG,QAAQ,EAE3I,WAAW,EAAU,EAAE,CACzB,CAEA,kBAAsB,CACpB,EAAI,iBAAkB,EAAM,QAAS,kBAAmB,EAAM,GAAG,QAAQ,YAAY,EACrF,EAAI,YAAa,EAAM,IAAI,SAAU,WAAY,EAAM,IAAI,KAAK,EAChE,EAAO,YAAY,EACnB,KAAM,GAAM,KAAK,EACjB,EAAI,WAAY,EAAM,GAAG,WAAW,EAAG,eAAgB,EAAM,IAAI,QAAQ,EACzE,EAAI,iBAAkB,OAAO,OAAO,EAAM,MAAM,EAAE,OAAO,AAAC,GAAU,IAAU,IAAI,EAAE,MAAM,EAC1F,EAAO,iBAAiB,EACxB,KAAM,GAAM,OAAO,EACnB,KAAM,GAAO,EACb,KAAM,GAAc,EACpB,KAAM,GAAS,CACjB,CAEA,OAAO,OAAS", "names": [] } diff --git a/demo/typescript/index.ts b/demo/typescript/index.ts index 1e0a3406..af8a373a 100644 --- a/demo/typescript/index.ts +++ b/demo/typescript/index.ts @@ -14,11 +14,11 @@ const humanConfig: Partial = { // user configuration for human, used to // async: true, modelBasePath: '../../models', filter: { enabled: true, equalization: false }, - cacheSensitivity: 0, + // cacheSensitivity: 0, face: { enabled: true, detector: { rotation: false }, mesh: { enabled: true }, attention: { enabled: false }, iris: { enabled: true }, description: { enabled: true }, emotion: { enabled: true } }, body: { enabled: true }, hand: { enabled: true }, - object: { enabled: true }, + object: { enabled: false }, gesture: { enabled: true }, }; diff --git a/package.json b/package.json index b687829f..11ed7971 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "tensorflow" ], "devDependencies": { - "@microsoft/api-extractor": "^7.22.1", + "@microsoft/api-extractor": "^7.22.2", "@tensorflow/tfjs": "^3.15.0", "@tensorflow/tfjs-backend-cpu": "^3.15.0", "@tensorflow/tfjs-backend-wasm": "^3.15.0", @@ -73,7 +73,7 @@ "@vladmandic/pilogger": "^0.4.4", "@vladmandic/tfjs": "github:vladmandic/tfjs", "canvas": "^2.9.1", - "dayjs": "^1.11.0", + "dayjs": "^1.11.1", "esbuild": "^0.14.36", "eslint": "8.13.0", "eslint-config-airbnb-base": "^15.0.0", diff --git a/src/warmup.ts b/src/warmup.ts index f48bb08b..9ad08bd7 100644 --- a/src/warmup.ts +++ b/src/warmup.ts @@ -10,7 +10,7 @@ import { env } from './util/env'; import type { Config } from './config'; import type { Result } from './result'; import type { Human, Models } from './human'; -import type { Tensor, GraphModel } from './tfjs/types'; +import type { Tensor } from './tfjs/types'; async function warmupBitmap(instance: Human): Promise { const b64toBlob = (base64: string, type = 'application/octet-stream') => fetch(`data:${type};base64,${base64}`).then((res) => res.blob()); @@ -112,26 +112,33 @@ export async function runCompile(allModels: Models) { const backendType = tf.getBackend(); const webGLBackend = tf.backend(); if ((backendType !== 'webgl' && backendType !== 'humangl') || (!webGLBackend || !webGLBackend.checkCompileCompletion)) { - log('compile pass: skip'); + // log('compile pass: skip'); return; } - const models = Object.values(allModels).filter((m) => m !== null) as GraphModel[]; tf.env().set('ENGINE_COMPILE_ONLY', true); const numTensorsStart = tf.engine().state.numTensors; - for (const model of models) { + const compiledModels: string[] = []; + for (const [modelName, model] of Object.entries(allModels).filter(([key, val]) => (key !== null && val !== null))) { const shape = (model.inputs && model.inputs[0] && model.inputs[0].shape) ? [...model.inputs[0].shape] : [1, 64, 64, 3]; const dtype = (model.inputs && model.inputs[0] && model.inputs[0].dtype) ? model.inputs[0].dtype : 'float32'; for (let dim = 0; dim < shape.length; dim++) { if (shape[dim] === -1) shape[dim] = dim === 0 ? 1 : 64; // override batch number and any dynamic dimensions } const tensor = tf.zeros(shape, dtype); - const res = await model.executeAsync(tensor); - if (Array.isArray(res)) res.forEach((t) => tf.dispose(t)); - else tf.dispose(res); + // const res = await model.executeAsync(tensor); // fails with current tfjs + try { + const res = model.execute(tensor); + compiledModels.push(modelName); + if (Array.isArray(res)) res.forEach((t) => tf.dispose(t)); + else tf.dispose(res); + } catch { + log('compile fail model:', modelName); + } tf.dispose(tensor); } const kernels = await webGLBackend.checkCompileCompletionAsync(); webGLBackend.getUniformLocations(); + log('compile pass models:', compiledModels); log('compile pass kernels:', kernels.length); tf.env().set('ENGINE_COMPILE_ONLY', false); const numTensorsEnd = tf.engine().state.numTensors; @@ -140,7 +147,7 @@ export async function runCompile(allModels: Models) { /** Warmup method pre-initializes all configured models for faster inference * - can take significant time on startup - * - only used for `webgl` and `humangl` backends + * - only used in browser environments for `webgl` and `humangl` backends * @param userConfig?: Config */ export async function warmup(instance: Human, userConfig?: Partial): Promise { @@ -151,7 +158,7 @@ export async function warmup(instance: Human, userConfig?: Partial): Pro return { face: [], body: [], hand: [], gesture: [], object: [], performance: instance.performance, timestamp: now(), persons: [], error: null }; } return new Promise(async (resolve) => { - // await runCompile(instance.models); + await runCompile(instance.models); const res = await runInference(instance); const t1 = now(); if (instance.config.debug) log('warmup', instance.config.warmup, Math.round(t1 - t0), 'ms'); diff --git a/test/build.log b/test/build.log index 226a8fe7..aced9871 100644 --- a/test/build.log +++ b/test/build.log @@ -1,24 +1,24 @@ -2022-04-14 11:54:20 INFO:  Application: {"name":"@vladmandic/human","version":"2.7.0"} -2022-04-14 11:54:20 INFO:  Environment: {"profile":"production","config":".build.json","package":"package.json","tsconfig":true,"eslintrc":true,"git":true} -2022-04-14 11:54:20 INFO:  Toolchain: {"build":"0.7.2","esbuild":"0.14.36","typescript":"4.6.3","typedoc":"0.22.15","eslint":"8.13.0"} -2022-04-14 11:54:20 INFO:  Build: {"profile":"production","steps":["clean","compile","typings","typedoc","lint","changelog"]} -2022-04-14 11:54:20 STATE: Clean: {"locations":["dist/*","types/lib/*","typedoc/*"]} -2022-04-14 11:54:20 STATE: Compile: {"name":"tfjs/nodejs/cpu","format":"cjs","platform":"node","input":"tfjs/tf-node.ts","output":"dist/tfjs.esm.js","files":1,"inputBytes":102,"outputBytes":595} -2022-04-14 11:54:20 STATE: Compile: {"name":"human/nodejs/cpu","format":"cjs","platform":"node","input":"src/human.ts","output":"dist/human.node.js","files":72,"inputBytes":572717,"outputBytes":295399} -2022-04-14 11:54:20 STATE: Compile: {"name":"tfjs/nodejs/gpu","format":"cjs","platform":"node","input":"tfjs/tf-node-gpu.ts","output":"dist/tfjs.esm.js","files":1,"inputBytes":110,"outputBytes":599} -2022-04-14 11:54:20 STATE: Compile: {"name":"human/nodejs/gpu","format":"cjs","platform":"node","input":"src/human.ts","output":"dist/human.node-gpu.js","files":72,"inputBytes":572721,"outputBytes":295403} -2022-04-14 11:54:20 STATE: Compile: {"name":"tfjs/nodejs/wasm","format":"cjs","platform":"node","input":"tfjs/tf-node-wasm.ts","output":"dist/tfjs.esm.js","files":1,"inputBytes":149,"outputBytes":651} -2022-04-14 11:54:21 STATE: Compile: {"name":"human/nodejs/wasm","format":"cjs","platform":"node","input":"src/human.ts","output":"dist/human.node-wasm.js","files":72,"inputBytes":572773,"outputBytes":295453} -2022-04-14 11:54:21 STATE: Compile: {"name":"tfjs/browser/version","format":"esm","platform":"browser","input":"tfjs/tf-version.ts","output":"dist/tfjs.version.js","files":1,"inputBytes":1063,"outputBytes":394} -2022-04-14 11:54:21 STATE: Compile: {"name":"tfjs/browser/esm/nobundle","format":"esm","platform":"browser","input":"tfjs/tf-browser.ts","output":"dist/tfjs.esm.js","files":2,"inputBytes":1068,"outputBytes":615} -2022-04-14 11:54:21 STATE: Compile: {"name":"human/browser/esm/nobundle","format":"esm","platform":"browser","input":"src/human.ts","output":"dist/human.esm-nobundle.js","files":72,"inputBytes":572737,"outputBytes":294360} -2022-04-14 11:54:21 STATE: Compile: {"name":"tfjs/browser/esm/custom","format":"esm","platform":"browser","input":"tfjs/tf-custom.ts","output":"dist/tfjs.esm.js","files":1,"inputBytes":110,"outputBytes":1349864} -2022-04-14 11:54:21 STATE: Compile: {"name":"human/browser/iife/bundle","format":"iife","platform":"browser","input":"src/human.ts","output":"dist/human.js","files":72,"inputBytes":1921986,"outputBytes":1643238} -2022-04-14 11:54:21 STATE: Compile: {"name":"human/browser/esm/bundle","format":"esm","platform":"browser","input":"src/human.ts","output":"dist/human.esm.js","files":72,"inputBytes":1921986,"outputBytes":2123758} -2022-04-14 11:54:27 STATE: Typings: {"input":"src/human.ts","output":"types/lib","files":114} -2022-04-14 11:54:28 STATE: TypeDoc: {"input":"src/human.ts","output":"typedoc","objects":73,"generated":true} -2022-04-14 11:54:28 STATE: Compile: {"name":"demo/typescript","format":"esm","platform":"browser","input":"demo/typescript/index.ts","output":"demo/typescript/index.js","files":1,"inputBytes":5916,"outputBytes":2957} -2022-04-14 11:54:28 STATE: Compile: {"name":"demo/faceid","format":"esm","platform":"browser","input":"demo/faceid/index.ts","output":"demo/faceid/index.js","files":2,"inputBytes":15174,"outputBytes":7820} -2022-04-14 11:54:37 STATE: Lint: {"locations":["*.json","src/**/*.ts","test/**/*.js","demo/**/*.js"],"files":104,"errors":0,"warnings":0} -2022-04-14 11:54:37 STATE: ChangeLog: {"repository":"https://github.com/vladmandic/human","branch":"main","output":"CHANGELOG.md"} -2022-04-14 11:54:37 INFO:  Done... +2022-04-15 07:53:06 INFO:  Application: {"name":"@vladmandic/human","version":"2.7.0"} +2022-04-15 07:53:06 INFO:  Environment: {"profile":"production","config":".build.json","package":"package.json","tsconfig":true,"eslintrc":true,"git":true} +2022-04-15 07:53:06 INFO:  Toolchain: {"build":"0.7.2","esbuild":"0.14.36","typescript":"4.6.3","typedoc":"0.22.15","eslint":"8.13.0"} +2022-04-15 07:53:06 INFO:  Build: {"profile":"production","steps":["clean","compile","typings","typedoc","lint","changelog"]} +2022-04-15 07:53:06 STATE: Clean: {"locations":["dist/*","types/lib/*","typedoc/*"]} +2022-04-15 07:53:06 STATE: Compile: {"name":"tfjs/nodejs/cpu","format":"cjs","platform":"node","input":"tfjs/tf-node.ts","output":"dist/tfjs.esm.js","files":1,"inputBytes":102,"outputBytes":595} +2022-04-15 07:53:06 STATE: Compile: {"name":"human/nodejs/cpu","format":"cjs","platform":"node","input":"src/human.ts","output":"dist/human.node.js","files":72,"inputBytes":573005,"outputBytes":296299} +2022-04-15 07:53:06 STATE: Compile: {"name":"tfjs/nodejs/gpu","format":"cjs","platform":"node","input":"tfjs/tf-node-gpu.ts","output":"dist/tfjs.esm.js","files":1,"inputBytes":110,"outputBytes":599} +2022-04-15 07:53:06 STATE: Compile: {"name":"human/nodejs/gpu","format":"cjs","platform":"node","input":"src/human.ts","output":"dist/human.node-gpu.js","files":72,"inputBytes":573009,"outputBytes":296303} +2022-04-15 07:53:06 STATE: Compile: {"name":"tfjs/nodejs/wasm","format":"cjs","platform":"node","input":"tfjs/tf-node-wasm.ts","output":"dist/tfjs.esm.js","files":1,"inputBytes":149,"outputBytes":651} +2022-04-15 07:53:06 STATE: Compile: {"name":"human/nodejs/wasm","format":"cjs","platform":"node","input":"src/human.ts","output":"dist/human.node-wasm.js","files":72,"inputBytes":573061,"outputBytes":296353} +2022-04-15 07:53:06 STATE: Compile: {"name":"tfjs/browser/version","format":"esm","platform":"browser","input":"tfjs/tf-version.ts","output":"dist/tfjs.version.js","files":1,"inputBytes":1069,"outputBytes":358} +2022-04-15 07:53:06 STATE: Compile: {"name":"tfjs/browser/esm/nobundle","format":"esm","platform":"browser","input":"tfjs/tf-browser.ts","output":"dist/tfjs.esm.js","files":2,"inputBytes":1032,"outputBytes":583} +2022-04-15 07:53:06 STATE: Compile: {"name":"human/browser/esm/nobundle","format":"esm","platform":"browser","input":"src/human.ts","output":"dist/human.esm-nobundle.js","files":72,"inputBytes":572993,"outputBytes":295216} +2022-04-15 07:53:06 STATE: Compile: {"name":"tfjs/browser/esm/custom","format":"esm","platform":"browser","input":"tfjs/tf-custom.ts","output":"dist/tfjs.esm.js","files":1,"inputBytes":110,"outputBytes":1349864} +2022-04-15 07:53:06 STATE: Compile: {"name":"human/browser/iife/bundle","format":"iife","platform":"browser","input":"src/human.ts","output":"dist/human.js","files":72,"inputBytes":1922274,"outputBytes":1644071} +2022-04-15 07:53:06 STATE: Compile: {"name":"human/browser/esm/bundle","format":"esm","platform":"browser","input":"src/human.ts","output":"dist/human.esm.js","files":72,"inputBytes":1922274,"outputBytes":2125347} +2022-04-15 07:53:11 STATE: Typings: {"input":"src/human.ts","output":"types/lib","files":114} +2022-04-15 07:53:13 STATE: TypeDoc: {"input":"src/human.ts","output":"typedoc","objects":73,"generated":true} +2022-04-15 07:53:13 STATE: Compile: {"name":"demo/typescript","format":"esm","platform":"browser","input":"demo/typescript/index.ts","output":"demo/typescript/index.js","files":1,"inputBytes":5920,"outputBytes":2938} +2022-04-15 07:53:13 STATE: Compile: {"name":"demo/faceid","format":"esm","platform":"browser","input":"demo/faceid/index.ts","output":"demo/faceid/index.js","files":2,"inputBytes":15174,"outputBytes":7820} +2022-04-15 07:53:21 STATE: Lint: {"locations":["*.json","src/**/*.ts","test/**/*.js","demo/**/*.js"],"files":104,"errors":0,"warnings":0} +2022-04-15 07:53:21 STATE: ChangeLog: {"repository":"https://github.com/vladmandic/human","branch":"main","output":"CHANGELOG.md"} +2022-04-15 07:53:21 INFO:  Done... diff --git a/test/test.log b/test/test.log index 91bbbc2e..ff435da0 100644 --- a/test/test.log +++ b/test/test.log @@ -1,684 +1,684 @@ -2022-04-14 11:54:51 INFO:  @vladmandic/human version 2.7.0 -2022-04-14 11:54:51 INFO:  User: vlado Platform: linux Arch: x64 Node: v17.4.0 -2022-04-14 11:54:51 INFO:  tests: ["test-node.js","test-node-gpu.js","test-node-wasm.js"] -2022-04-14 11:54:51 INFO:  demos: ["../demo/nodejs/node.js","../demo/nodejs/node-canvas.js","../demo/nodejs/node-env.js","../demo/nodejs/node-event.js","../demo/nodejs/node-multiprocess.js"] -2022-04-14 11:54:51 INFO:  -2022-04-14 11:54:51 INFO:  test-node.js start -2022-04-14 11:54:51 INFO:  test-node.js test: configuration validation -2022-04-14 11:54:51 STATE: test-node.js passed: configuration default validation [] -2022-04-14 11:54:51 STATE: test-node.js passed: configuration invalid validation [{"reason":"unknown property","where":"config.invalid = true"}] -2022-04-14 11:54:51 INFO:  test-node.js test: model load -2022-04-14 11:54:51 STATE: test-node.js passed: models loaded 22 12 [{"name":"ssrnetage","loaded":false},{"name":"gear","loaded":false},{"name":"blazeposedetect","loaded":false},{"name":"blazepose","loaded":false},{"name":"centernet","loaded":true},{"name":"efficientpose","loaded":false},{"name":"mobilefacenet","loaded":false},{"name":"emotion","loaded":true},{"name":"facedetect","loaded":true},{"name":"faceiris","loaded":true},{"name":"facemesh","loaded":true},{"name":"faceres","loaded":true},{"name":"ssrnetgender","loaded":false},{"name":"handpose","loaded":false},{"name":"handskeleton","loaded":true},{"name":"handtrack","loaded":true},{"name":"liveness","loaded":true},{"name":"movenet","loaded":true},{"name":"nanodet","loaded":false},{"name":"posenet","loaded":false},{"name":"segmentation","loaded":true},{"name":"antispoof","loaded":true}] -2022-04-14 11:54:51 INFO:  test-node.js test: warmup -2022-04-14 11:54:51 STATE: test-node.js passed: create human -2022-04-14 11:54:51 INFO:  test-node.js human version: 2.7.0 -2022-04-14 11:54:51 INFO:  test-node.js platform: linux x64 agent: NodeJS v17.4.0 -2022-04-14 11:54:51 INFO:  test-node.js tfjs version: 3.15.0 -2022-04-14 11:54:51 INFO:  test-node.js tensorflow binding version: 2.7.0-dev20211101 -2022-04-14 11:54:51 STATE: test-node.js passed: set backend: tensorflow -2022-04-14 11:54:51 STATE: test-node.js tensors 1919 -2022-04-14 11:54:51 STATE: test-node.js passed: load models -2022-04-14 11:54:51 STATE: test-node.js result: defined models: 22 loaded models: 12 -2022-04-14 11:54:51 STATE: test-node.js passed: warmup: none default -2022-04-14 11:54:51 DATA:  test-node.js result: face: 0 body: 0 hand: 0 gesture: 0 object: 0 person: 0 {} {} {} -2022-04-14 11:54:51 DATA:  test-node.js result: performance: load: null total: null -2022-04-14 11:54:51 STATE: test-node.js passed: warmup none result match -2022-04-14 11:54:51 STATE: test-node.js event: image -2022-04-14 11:54:52 STATE: test-node.js event: detect -2022-04-14 11:54:52 STATE: test-node.js event: warmup -2022-04-14 11:54:52 STATE: test-node.js passed: warmup: face default -2022-04-14 11:54:52 DATA:  test-node.js result: face: 1 body: 1 hand: 1 gesture: 7 object: 1 person: 1 {"score":1,"age":23.5,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.42,"keypoints":4} -2022-04-14 11:54:52 DATA:  test-node.js result: performance: load: null total: 347 -2022-04-14 11:54:52 STATE: test-node.js passed: warmup face result match -2022-04-14 11:54:52 STATE: test-node.js event: image -2022-04-14 11:54:52 STATE: test-node.js event: detect -2022-04-14 11:54:52 STATE: test-node.js event: warmup -2022-04-14 11:54:52 STATE: test-node.js passed: warmup: body default -2022-04-14 11:54:52 DATA:  test-node.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.7,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} -2022-04-14 11:54:52 DATA:  test-node.js result: performance: load: null total: 268 -2022-04-14 11:54:52 STATE: test-node.js passed: warmup body result match -2022-04-14 11:54:52 STATE: test-node.js details: {"face":{"boxScore":0.92,"faceScore":1,"age":23.7,"gender":"female","genderScore":0.97},"emotion":[{"score":0.63,"emotion":"angry"},{"score":0.22,"emotion":"fear"}],"body":{"score":0.92,"keypoints":17},"hand":{"boxScore":0.52,"fingerScore":0.73,"keypoints":21},"gestures":[{"face":0,"gesture":"facing right"},{"hand":0,"gesture":"pinky forward"},{"hand":0,"gesture":"palm up"},{"hand":0,"gesture":"open palm"},{"iris":0,"gesture":"looking right"},{"iris":0,"gesture":"looking up"}]} -2022-04-14 11:54:52 INFO:  test-node.js test: details verification -2022-04-14 11:54:52 STATE: test-node.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796864} -2022-04-14 11:54:52 STATE: test-node.js event: image -2022-04-14 11:54:53 STATE: test-node.js event: detect -2022-04-14 11:54:53 STATE: test-node.js passed: detect: samples/in/ai-body.jpg default -2022-04-14 11:54:53 DATA:  test-node.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.7,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} -2022-04-14 11:54:53 DATA:  test-node.js result: performance: load: null total: 252 -2022-04-14 11:54:53 STATE: test-node.js passed: details face length 1 -2022-04-14 11:54:53 STATE: test-node.js passed: details face score 1 0.93 1 -2022-04-14 11:54:53 STATE: test-node.js passed: details face age/gender 23.7 female 0.97 73.26 -2022-04-14 11:54:53 STATE: test-node.js passed: details face arrays 4 478 1024 -2022-04-14 11:54:53 STATE: test-node.js passed: details face emotion 2 {"score":0.59,"emotion":"angry"} -2022-04-14 11:54:53 STATE: test-node.js passed: details face anti-spoofing 0.79 -2022-04-14 11:54:53 STATE: test-node.js passed: details face liveness 0.83 -2022-04-14 11:54:53 STATE: test-node.js passed: details body length 1 -2022-04-14 11:54:53 STATE: test-node.js passed: details body 0.92 17 6 -2022-04-14 11:54:53 STATE: test-node.js passed: details hand length 1 -2022-04-14 11:54:53 STATE: test-node.js passed: details hand 0.51 0.73 point -2022-04-14 11:54:53 STATE: test-node.js passed: details hand arrays 21 5 7 -2022-04-14 11:54:53 STATE: test-node.js passed: details gesture length 6 -2022-04-14 11:54:53 STATE: test-node.js passed: details gesture first {"face":0,"gesture":"facing right"} -2022-04-14 11:54:53 STATE: test-node.js passed: details object length 1 -2022-04-14 11:54:53 STATE: test-node.js passed: details object 0.72 person -2022-04-14 11:54:53 STATE: test-node.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,4] {"checksum":1371996928} -2022-04-14 11:54:53 STATE: test-node.js event: image -2022-04-14 11:54:53 STATE: test-node.js event: detect -2022-04-14 11:54:53 STATE: test-node.js passed: tensor shape: [1,1200,1200,4] dtype: float32 -2022-04-14 11:54:53 STATE: test-node.js passed: load image: samples/in/ai-body.jpg [1200,1200,4] {"checksum":1371996928} -2022-04-14 11:54:53 STATE: test-node.js event: image -2022-04-14 11:54:54 STATE: test-node.js event: detect -2022-04-14 11:54:54 STATE: test-node.js passed: tensor shape: [1200,1200,4] dtype: float32 -2022-04-14 11:54:54 STATE: test-node.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796864} -2022-04-14 11:54:54 STATE: test-node.js event: image -2022-04-14 11:54:54 STATE: test-node.js event: detect -2022-04-14 11:54:54 STATE: test-node.js passed: tensor shape: [1,1200,1200,3] dtype: float32 -2022-04-14 11:54:54 STATE: test-node.js passed: load image: samples/in/ai-body.jpg [1200,1200,3] {"checksum":1004796864} -2022-04-14 11:54:54 STATE: test-node.js event: image -2022-04-14 11:54:54 STATE: test-node.js event: detect -2022-04-14 11:54:54 STATE: test-node.js passed: tensor shape: [1200,1200,3] dtype: float32 -2022-04-14 11:54:55 STATE: test-node.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,4] {"checksum":1371996871} -2022-04-14 11:54:55 STATE: test-node.js event: image -2022-04-14 11:54:55 STATE: test-node.js event: detect -2022-04-14 11:54:55 STATE: test-node.js passed: tensor shape: [1,1200,1200,4] dtype: int32 -2022-04-14 11:54:55 INFO:  test-node.js test default -2022-04-14 11:54:55 STATE: test-node.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796864} -2022-04-14 11:54:55 STATE: test-node.js event: image -2022-04-14 11:54:55 STATE: test-node.js event: detect -2022-04-14 11:54:55 STATE: test-node.js passed: detect: samples/in/ai-body.jpg default -2022-04-14 11:54:55 DATA:  test-node.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.7,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} -2022-04-14 11:54:55 DATA:  test-node.js result: performance: load: null total: 254 -2022-04-14 11:54:55 STATE: test-node.js passed: default result face match 1 female 0.97 -2022-04-14 11:54:55 INFO:  test-node.js test sync -2022-04-14 11:54:56 STATE: test-node.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796864} -2022-04-14 11:54:56 STATE: test-node.js event: image -2022-04-14 11:54:56 STATE: test-node.js event: detect -2022-04-14 11:54:56 STATE: test-node.js passed: detect: samples/in/ai-body.jpg default -2022-04-14 11:54:56 DATA:  test-node.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.7,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} -2022-04-14 11:54:56 DATA:  test-node.js result: performance: load: null total: 237 -2022-04-14 11:54:56 STATE: test-node.js passed: default sync 1 female 0.97 -2022-04-14 11:54:56 INFO:  test-node.js test: image process -2022-04-14 11:54:56 STATE: test-node.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34696120} -2022-04-14 11:54:56 STATE: test-node.js passed: image input null [1,256,256,3] -2022-04-14 11:54:56 INFO:  test-node.js test: image null -2022-04-14 11:54:56 STATE: test-node.js passed: invalid input could not convert input to tensor -2022-04-14 11:54:56 INFO:  test-node.js test face similarity -2022-04-14 11:54:56 STATE: test-node.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34696120} -2022-04-14 11:54:56 STATE: test-node.js event: image -2022-04-14 11:54:56 STATE: test-node.js event: detect -2022-04-14 11:54:56 STATE: test-node.js passed: detect: samples/in/ai-face.jpg default -2022-04-14 11:54:56 DATA:  test-node.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.5,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.47,"keypoints":3} -2022-04-14 11:54:56 DATA:  test-node.js result: performance: load: null total: 217 -2022-04-14 11:54:56 STATE: test-node.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796864} -2022-04-14 11:54:56 STATE: test-node.js event: image -2022-04-14 11:54:56 STATE: test-node.js event: detect -2022-04-14 11:54:56 STATE: test-node.js passed: detect: samples/in/ai-body.jpg default -2022-04-14 11:54:56 DATA:  test-node.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.7,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} -2022-04-14 11:54:56 DATA:  test-node.js result: performance: load: null total: 223 -2022-04-14 11:54:56 STATE: test-node.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151289024} -2022-04-14 11:54:56 STATE: test-node.js event: image -2022-04-14 11:54:57 STATE: test-node.js event: detect -2022-04-14 11:54:57 STATE: test-node.js passed: detect: samples/in/ai-upper.jpg default -2022-04-14 11:54:57 DATA:  test-node.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"score":1,"age":23.5,"gender":"female"} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":7} -2022-04-14 11:54:57 DATA:  test-node.js result: performance: load: null total: 197 -2022-04-14 11:54:57 STATE: test-node.js passed: face descriptor -2022-04-14 11:54:57 STATE: test-node.js passed: face similarity {"similarity":[1,0.44727452329649126,0.5567935850640406],"descriptors":[1024,1024,1024]} -2022-04-14 11:54:57 INFO:  test-node.js test face matching -2022-04-14 11:54:57 STATE: test-node.js passed: face database 40 -2022-04-14 11:54:57 STATE: test-node.js passed: face match {"first":{"index":4,"similarity":0.7827852615252829}} {"second":{"index":4,"similarity":0.5002052633015844}} {"third":{"index":4,"similarity":0.5401587887998899}} -2022-04-14 11:54:57 INFO:  test-node.js test object -2022-04-14 11:54:57 STATE: test-node.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796864} -2022-04-14 11:54:57 STATE: test-node.js event: image -2022-04-14 11:54:57 STATE: test-node.js event: detect -2022-04-14 11:54:57 STATE: test-node.js passed: detect: samples/in/ai-body.jpg default -2022-04-14 11:54:57 DATA:  test-node.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.7,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} -2022-04-14 11:54:57 DATA:  test-node.js result: performance: load: null total: 218 -2022-04-14 11:54:57 STATE: test-node.js passed: object result match -2022-04-14 11:54:57 INFO:  test-node.js test sensitive -2022-04-14 11:54:57 STATE: test-node.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796864} -2022-04-14 11:54:57 STATE: test-node.js event: image -2022-04-14 11:54:57 STATE: test-node.js event: detect -2022-04-14 11:54:57 STATE: test-node.js passed: detect: samples/in/ai-body.jpg default -2022-04-14 11:54:57 DATA:  test-node.js result: face: 1 body: 1 hand: 2 gesture: 8 object: 1 person: 1 {"score":1,"age":23.7,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} -2022-04-14 11:54:57 DATA:  test-node.js result: performance: load: null total: 242 -2022-04-14 11:54:57 STATE: test-node.js passed: sensitive result match -2022-04-14 11:54:57 STATE: test-node.js passed: sensitive face result match -2022-04-14 11:54:57 STATE: test-node.js passed: sensitive face emotion result [{"score":0.59,"emotion":"angry"},{"score":0.29,"emotion":"fear"}] -2022-04-14 11:54:57 STATE: test-node.js passed: sensitive body result match -2022-04-14 11:54:57 STATE: test-node.js passed: sensitive hand result match -2022-04-14 11:54:57 INFO:  test-node.js test detectors -2022-04-14 11:54:58 STATE: test-node.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796864} -2022-04-14 11:54:58 STATE: test-node.js event: image -2022-04-14 11:54:58 STATE: test-node.js event: detect -2022-04-14 11:54:58 STATE: test-node.js passed: detect: samples/in/ai-body.jpg default -2022-04-14 11:54:58 DATA:  test-node.js result: face: 1 body: 1 hand: 1 gesture: 0 object: 1 person: 1 {"score":0.93} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} -2022-04-14 11:54:58 DATA:  test-node.js result: performance: load: null total: 154 -2022-04-14 11:54:58 STATE: test-node.js passed: detector result face match -2022-04-14 11:54:58 STATE: test-node.js passed: detector result hand match -2022-04-14 11:54:58 INFO:  test-node.js test: multi-instance -2022-04-14 11:54:58 STATE: test-node.js event: image -2022-04-14 11:54:58 STATE: test-node.js event: detect -2022-04-14 11:54:58 STATE: test-node.js passed: detect: random default -2022-04-14 11:54:58 DATA:  test-node.js result: face: 0 body: 1 hand: 0 gesture: 0 object: 0 person: 0 {} {} {"score":0.07,"keypoints":15} -2022-04-14 11:54:58 DATA:  test-node.js result: performance: load: null total: 150 -2022-04-14 11:54:58 INFO:  test-node.js test: first instance -2022-04-14 11:54:58 STATE: test-node.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151289024} -2022-04-14 11:54:58 STATE: test-node.js passed: detect: samples/in/ai-upper.jpg default -2022-04-14 11:54:58 DATA:  test-node.js result: face: 1 body: 1 hand: 0 gesture: 0 object: 1 person: 1 {"score":0.96} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":16} -2022-04-14 11:54:58 DATA:  test-node.js result: performance: load: null total: 146 -2022-04-14 11:54:58 INFO:  test-node.js test: second instance -2022-04-14 11:54:58 STATE: test-node.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151289024} -2022-04-14 11:54:58 STATE: test-node.js passed: detect: samples/in/ai-upper.jpg default -2022-04-14 11:54:58 DATA:  test-node.js result: face: 1 body: 1 hand: 0 gesture: 0 object: 1 person: 1 {"score":0.96} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":16} -2022-04-14 11:54:58 DATA:  test-node.js result: performance: load: null total: 148 -2022-04-14 11:54:58 INFO:  test-node.js test: concurrent -2022-04-14 11:54:59 STATE: test-node.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34696120} -2022-04-14 11:54:59 STATE: test-node.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34696120} -2022-04-14 11:54:59 STATE: test-node.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796864} -2022-04-14 11:54:59 STATE: test-node.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796864} -2022-04-14 11:54:59 STATE: test-node.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151289024} -2022-04-14 11:54:59 STATE: test-node.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151289024} -2022-04-14 11:54:59 STATE: test-node.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34696120} -2022-04-14 11:54:59 STATE: test-node.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796864} -2022-04-14 11:54:59 STATE: test-node.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151289024} -2022-04-14 11:54:59 STATE: test-node.js event: image -2022-04-14 11:54:59 STATE: test-node.js event: image -2022-04-14 11:54:59 STATE: test-node.js event: image -2022-04-14 11:55:00 STATE: test-node.js passed: detect: samples/in/ai-upper.jpg default -2022-04-14 11:55:00 DATA:  test-node.js result: face: 1 body: 1 hand: 0 gesture: 0 object: 1 person: 1 {"score":0.96} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":16} -2022-04-14 11:55:00 DATA:  test-node.js result: performance: load: null total: 1456 -2022-04-14 11:55:00 STATE: test-node.js passed: detect: samples/in/ai-upper.jpg default -2022-04-14 11:55:00 DATA:  test-node.js result: face: 1 body: 1 hand: 0 gesture: 0 object: 1 person: 1 {"score":0.96} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":16} -2022-04-14 11:55:00 DATA:  test-node.js result: performance: load: null total: 1456 -2022-04-14 11:55:01 STATE: test-node.js passed: detect: samples/in/ai-face.jpg default -2022-04-14 11:55:01 DATA:  test-node.js result: face: 1 body: 1 hand: 1 gesture: 2 object: 1 person: 1 {"score":0.91} {"score":0.82,"class":"person"} {"score":0.47,"keypoints":17} -2022-04-14 11:55:01 DATA:  test-node.js result: performance: load: null total: 1577 -2022-04-14 11:55:01 STATE: test-node.js passed: detect: samples/in/ai-face.jpg default -2022-04-14 11:55:01 DATA:  test-node.js result: face: 1 body: 1 hand: 1 gesture: 2 object: 1 person: 1 {"score":0.91} {"score":0.82,"class":"person"} {"score":0.47,"keypoints":17} -2022-04-14 11:55:01 DATA:  test-node.js result: performance: load: null total: 1577 -2022-04-14 11:55:01 STATE: test-node.js passed: detect: samples/in/ai-body.jpg default -2022-04-14 11:55:01 DATA:  test-node.js result: face: 1 body: 1 hand: 1 gesture: 0 object: 1 person: 1 {"score":0.93} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} -2022-04-14 11:55:01 DATA:  test-node.js result: performance: load: null total: 1577 -2022-04-14 11:55:01 STATE: test-node.js passed: detect: samples/in/ai-body.jpg default -2022-04-14 11:55:01 DATA:  test-node.js result: face: 1 body: 1 hand: 1 gesture: 0 object: 1 person: 1 {"score":0.93} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} -2022-04-14 11:55:01 DATA:  test-node.js result: performance: load: null total: 1577 -2022-04-14 11:55:01 STATE: test-node.js event: detect -2022-04-14 11:55:01 STATE: test-node.js passed: detect: samples/in/ai-upper.jpg default -2022-04-14 11:55:01 DATA:  test-node.js result: face: 1 body: 1 hand: 0 gesture: 0 object: 1 person: 1 {"score":0.96} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":16} -2022-04-14 11:55:01 DATA:  test-node.js result: performance: load: null total: 1299 -2022-04-14 11:55:01 STATE: test-node.js event: detect -2022-04-14 11:55:01 STATE: test-node.js event: detect -2022-04-14 11:55:01 STATE: test-node.js passed: detect: samples/in/ai-face.jpg default -2022-04-14 11:55:01 DATA:  test-node.js result: face: 1 body: 1 hand: 1 gesture: 2 object: 1 person: 1 {"score":0.91} {"score":0.82,"class":"person"} {"score":0.47,"keypoints":17} -2022-04-14 11:55:01 DATA:  test-node.js result: performance: load: null total: 1299 -2022-04-14 11:55:01 STATE: test-node.js passed: detect: samples/in/ai-body.jpg default -2022-04-14 11:55:01 DATA:  test-node.js result: face: 1 body: 1 hand: 1 gesture: 0 object: 1 person: 1 {"score":0.93} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} -2022-04-14 11:55:01 DATA:  test-node.js result: performance: load: null total: 1299 -2022-04-14 11:55:01 INFO:  test-node.js test: monkey-patch -2022-04-14 11:55:01 STATE: test-node.js event: image -2022-04-14 11:55:01 STATE: test-node.js event: detect -2022-04-14 11:55:01 STATE: test-node.js passed: monkey patch -2022-04-14 11:55:01 STATE: test-node.js passed: segmentation [65536] -2022-04-14 11:55:01 STATE: test-node.js passeed: equal usage -2022-04-14 11:55:01 INFO:  test-node.js test: input compare -2022-04-14 11:55:01 STATE: test-node.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34696120} -2022-04-14 11:55:01 STATE: test-node.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796864} -2022-04-14 11:55:01 STATE: test-node.js passed: image compare 0 23.275441687091504 -2022-04-14 11:55:01 INFO:  test-node.js events: {"image":21,"detect":21,"warmup":2} -2022-04-14 11:55:01 INFO:  test-node.js tensors 1925 -2022-04-14 11:55:01 INFO:  test-node.js test complete: 9683 ms -2022-04-14 11:55:01 INFO:  -2022-04-14 11:55:01 INFO:  test-node-gpu.js start -2022-04-14 11:55:02 INFO:  test-node-gpu.js test: configuration validation -2022-04-14 11:55:02 STATE: test-node-gpu.js passed: configuration default validation [] -2022-04-14 11:55:02 STATE: test-node-gpu.js passed: configuration invalid validation [{"reason":"unknown property","where":"config.invalid = true"}] -2022-04-14 11:55:02 INFO:  test-node-gpu.js test: model load -2022-04-14 11:55:02 STATE: test-node-gpu.js passed: models loaded 22 12 [{"name":"ssrnetage","loaded":false},{"name":"gear","loaded":false},{"name":"blazeposedetect","loaded":false},{"name":"blazepose","loaded":false},{"name":"centernet","loaded":true},{"name":"efficientpose","loaded":false},{"name":"mobilefacenet","loaded":false},{"name":"emotion","loaded":true},{"name":"facedetect","loaded":true},{"name":"faceiris","loaded":true},{"name":"facemesh","loaded":true},{"name":"faceres","loaded":true},{"name":"ssrnetgender","loaded":false},{"name":"handpose","loaded":false},{"name":"handskeleton","loaded":true},{"name":"handtrack","loaded":true},{"name":"liveness","loaded":true},{"name":"movenet","loaded":true},{"name":"nanodet","loaded":false},{"name":"posenet","loaded":false},{"name":"segmentation","loaded":true},{"name":"antispoof","loaded":true}] -2022-04-14 11:55:02 INFO:  test-node-gpu.js test: warmup -2022-04-14 11:55:02 STATE: test-node-gpu.js passed: create human -2022-04-14 11:55:02 INFO:  test-node-gpu.js human version: 2.7.0 -2022-04-14 11:55:02 INFO:  test-node-gpu.js platform: linux x64 agent: NodeJS v17.4.0 -2022-04-14 11:55:02 INFO:  test-node-gpu.js tfjs version: 3.15.0 -2022-04-14 11:55:02 INFO:  test-node-gpu.js tensorflow binding version: 2.7.0-dev20211101 -2022-04-14 11:55:02 STATE: test-node-gpu.js passed: set backend: tensorflow -2022-04-14 11:55:02 STATE: test-node-gpu.js tensors 1919 -2022-04-14 11:55:02 STATE: test-node-gpu.js passed: load models -2022-04-14 11:55:02 STATE: test-node-gpu.js result: defined models: 22 loaded models: 12 -2022-04-14 11:55:02 STATE: test-node-gpu.js passed: warmup: none default -2022-04-14 11:55:02 DATA:  test-node-gpu.js result: face: 0 body: 0 hand: 0 gesture: 0 object: 0 person: 0 {} {} {} -2022-04-14 11:55:02 DATA:  test-node-gpu.js result: performance: load: null total: null -2022-04-14 11:55:02 STATE: test-node-gpu.js passed: warmup none result match -2022-04-14 11:55:03 STATE: test-node-gpu.js event: image -2022-04-14 11:55:06 STATE: test-node-gpu.js event: detect -2022-04-14 11:55:06 STATE: test-node-gpu.js event: warmup -2022-04-14 11:55:06 STATE: test-node-gpu.js passed: warmup: face default -2022-04-14 11:55:06 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 1 gesture: 7 object: 1 person: 1 {"score":1,"age":23.5,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.42,"keypoints":4} -2022-04-14 11:55:06 DATA:  test-node-gpu.js result: performance: load: null total: 2965 -2022-04-14 11:55:06 STATE: test-node-gpu.js passed: warmup face result match -2022-04-14 11:55:06 STATE: test-node-gpu.js event: image -2022-04-14 11:55:06 STATE: test-node-gpu.js event: detect -2022-04-14 11:55:06 STATE: test-node-gpu.js event: warmup -2022-04-14 11:55:06 STATE: test-node-gpu.js passed: warmup: body default -2022-04-14 11:55:06 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.7,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} -2022-04-14 11:55:06 DATA:  test-node-gpu.js result: performance: load: null total: 247 -2022-04-14 11:55:06 STATE: test-node-gpu.js passed: warmup body result match -2022-04-14 11:55:06 STATE: test-node-gpu.js details: {"face":{"boxScore":0.92,"faceScore":1,"age":23.7,"gender":"female","genderScore":0.97},"emotion":[{"score":0.63,"emotion":"angry"},{"score":0.22,"emotion":"fear"}],"body":{"score":0.92,"keypoints":17},"hand":{"boxScore":0.52,"fingerScore":0.73,"keypoints":21},"gestures":[{"face":0,"gesture":"facing right"},{"hand":0,"gesture":"pinky forward"},{"hand":0,"gesture":"palm up"},{"hand":0,"gesture":"open palm"},{"iris":0,"gesture":"looking right"},{"iris":0,"gesture":"looking up"}]} -2022-04-14 11:55:06 INFO:  test-node-gpu.js test: details verification -2022-04-14 11:55:06 STATE: test-node-gpu.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796928} -2022-04-14 11:55:06 STATE: test-node-gpu.js event: image -2022-04-14 11:55:06 STATE: test-node-gpu.js event: detect -2022-04-14 11:55:06 STATE: test-node-gpu.js passed: detect: samples/in/ai-body.jpg default -2022-04-14 11:55:06 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.7,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} -2022-04-14 11:55:06 DATA:  test-node-gpu.js result: performance: load: null total: 202 -2022-04-14 11:55:06 STATE: test-node-gpu.js passed: details face length 1 -2022-04-14 11:55:06 STATE: test-node-gpu.js passed: details face score 1 0.93 1 -2022-04-14 11:55:06 STATE: test-node-gpu.js passed: details face age/gender 23.7 female 0.97 73.26 -2022-04-14 11:55:06 STATE: test-node-gpu.js passed: details face arrays 4 478 1024 -2022-04-14 11:55:06 STATE: test-node-gpu.js passed: details face emotion 2 {"score":0.59,"emotion":"angry"} -2022-04-14 11:55:06 STATE: test-node-gpu.js passed: details face anti-spoofing 0.79 -2022-04-14 11:55:06 STATE: test-node-gpu.js passed: details face liveness 0.83 -2022-04-14 11:55:06 STATE: test-node-gpu.js passed: details body length 1 -2022-04-14 11:55:06 STATE: test-node-gpu.js passed: details body 0.92 17 6 -2022-04-14 11:55:06 STATE: test-node-gpu.js passed: details hand length 1 -2022-04-14 11:55:06 STATE: test-node-gpu.js passed: details hand 0.51 0.73 point -2022-04-14 11:55:06 STATE: test-node-gpu.js passed: details hand arrays 21 5 7 -2022-04-14 11:55:06 STATE: test-node-gpu.js passed: details gesture length 6 -2022-04-14 11:55:06 STATE: test-node-gpu.js passed: details gesture first {"face":0,"gesture":"facing right"} -2022-04-14 11:55:06 STATE: test-node-gpu.js passed: details object length 1 -2022-04-14 11:55:06 STATE: test-node-gpu.js passed: details object 0.72 person -2022-04-14 11:55:07 STATE: test-node-gpu.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,4] {"checksum":1371996928} -2022-04-14 11:55:07 STATE: test-node-gpu.js event: image -2022-04-14 11:55:07 STATE: test-node-gpu.js event: detect -2022-04-14 11:55:07 STATE: test-node-gpu.js passed: tensor shape: [1,1200,1200,4] dtype: float32 -2022-04-14 11:55:07 STATE: test-node-gpu.js passed: load image: samples/in/ai-body.jpg [1200,1200,4] {"checksum":1371996928} -2022-04-14 11:55:07 STATE: test-node-gpu.js event: image -2022-04-14 11:55:07 STATE: test-node-gpu.js event: detect -2022-04-14 11:55:07 STATE: test-node-gpu.js passed: tensor shape: [1200,1200,4] dtype: float32 -2022-04-14 11:55:07 STATE: test-node-gpu.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796928} -2022-04-14 11:55:07 STATE: test-node-gpu.js event: image -2022-04-14 11:55:08 STATE: test-node-gpu.js event: detect -2022-04-14 11:55:08 STATE: test-node-gpu.js passed: tensor shape: [1,1200,1200,3] dtype: float32 -2022-04-14 11:55:08 STATE: test-node-gpu.js passed: load image: samples/in/ai-body.jpg [1200,1200,3] {"checksum":1004796928} -2022-04-14 11:55:08 STATE: test-node-gpu.js event: image -2022-04-14 11:55:08 STATE: test-node-gpu.js event: detect -2022-04-14 11:55:08 STATE: test-node-gpu.js passed: tensor shape: [1200,1200,3] dtype: float32 -2022-04-14 11:55:08 STATE: test-node-gpu.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,4] {"checksum":1371996871} -2022-04-14 11:55:08 STATE: test-node-gpu.js event: image -2022-04-14 11:55:08 STATE: test-node-gpu.js event: detect -2022-04-14 11:55:08 STATE: test-node-gpu.js passed: tensor shape: [1,1200,1200,4] dtype: int32 -2022-04-14 11:55:08 INFO:  test-node-gpu.js test default -2022-04-14 11:55:09 STATE: test-node-gpu.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796928} -2022-04-14 11:55:09 STATE: test-node-gpu.js event: image -2022-04-14 11:55:09 STATE: test-node-gpu.js event: detect -2022-04-14 11:55:09 STATE: test-node-gpu.js passed: detect: samples/in/ai-body.jpg default -2022-04-14 11:55:09 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.7,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} -2022-04-14 11:55:09 DATA:  test-node-gpu.js result: performance: load: null total: 223 -2022-04-14 11:55:09 STATE: test-node-gpu.js passed: default result face match 1 female 0.97 -2022-04-14 11:55:09 INFO:  test-node-gpu.js test sync -2022-04-14 11:55:09 STATE: test-node-gpu.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796928} -2022-04-14 11:55:09 STATE: test-node-gpu.js event: image -2022-04-14 11:55:09 STATE: test-node-gpu.js event: detect -2022-04-14 11:55:09 STATE: test-node-gpu.js passed: detect: samples/in/ai-body.jpg default -2022-04-14 11:55:09 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.7,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} -2022-04-14 11:55:09 DATA:  test-node-gpu.js result: performance: load: null total: 182 -2022-04-14 11:55:09 STATE: test-node-gpu.js passed: default sync 1 female 0.97 -2022-04-14 11:55:09 INFO:  test-node-gpu.js test: image process -2022-04-14 11:55:09 STATE: test-node-gpu.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34696120} -2022-04-14 11:55:09 STATE: test-node-gpu.js passed: image input null [1,256,256,3] -2022-04-14 11:55:09 INFO:  test-node-gpu.js test: image null -2022-04-14 11:55:09 STATE: test-node-gpu.js passed: invalid input could not convert input to tensor -2022-04-14 11:55:09 INFO:  test-node-gpu.js test face similarity -2022-04-14 11:55:09 STATE: test-node-gpu.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34696120} -2022-04-14 11:55:09 STATE: test-node-gpu.js event: image -2022-04-14 11:55:09 STATE: test-node-gpu.js event: detect -2022-04-14 11:55:09 STATE: test-node-gpu.js passed: detect: samples/in/ai-face.jpg default -2022-04-14 11:55:09 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.5,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.47,"keypoints":3} -2022-04-14 11:55:09 DATA:  test-node-gpu.js result: performance: load: null total: 175 -2022-04-14 11:55:10 STATE: test-node-gpu.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796928} -2022-04-14 11:55:10 STATE: test-node-gpu.js event: image -2022-04-14 11:55:10 STATE: test-node-gpu.js event: detect -2022-04-14 11:55:10 STATE: test-node-gpu.js passed: detect: samples/in/ai-body.jpg default -2022-04-14 11:55:10 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.7,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} -2022-04-14 11:55:10 DATA:  test-node-gpu.js result: performance: load: null total: 182 -2022-04-14 11:55:10 STATE: test-node-gpu.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151289056} -2022-04-14 11:55:10 STATE: test-node-gpu.js event: image -2022-04-14 11:55:10 STATE: test-node-gpu.js event: detect -2022-04-14 11:55:10 STATE: test-node-gpu.js passed: detect: samples/in/ai-upper.jpg default -2022-04-14 11:55:10 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"score":1,"age":23.5,"gender":"female"} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":7} -2022-04-14 11:55:10 DATA:  test-node-gpu.js result: performance: load: null total: 175 -2022-04-14 11:55:10 STATE: test-node-gpu.js passed: face descriptor -2022-04-14 11:55:10 STATE: test-node-gpu.js passed: face similarity {"similarity":[1,0.447238756461232,0.556914029877052],"descriptors":[1024,1024,1024]} -2022-04-14 11:55:10 INFO:  test-node-gpu.js test face matching -2022-04-14 11:55:10 STATE: test-node-gpu.js passed: face database 40 -2022-04-14 11:55:10 STATE: test-node-gpu.js passed: face match {"first":{"index":4,"similarity":0.7828184453007331}} {"second":{"index":4,"similarity":0.5001334216773398}} {"third":{"index":4,"similarity":0.5403054967489764}} -2022-04-14 11:55:10 INFO:  test-node-gpu.js test object -2022-04-14 11:55:10 STATE: test-node-gpu.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796928} -2022-04-14 11:55:10 STATE: test-node-gpu.js event: image -2022-04-14 11:55:11 STATE: test-node-gpu.js event: detect -2022-04-14 11:55:11 STATE: test-node-gpu.js passed: detect: samples/in/ai-body.jpg default -2022-04-14 11:55:11 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.7,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} -2022-04-14 11:55:11 DATA:  test-node-gpu.js result: performance: load: null total: 197 -2022-04-14 11:55:11 STATE: test-node-gpu.js passed: object result match -2022-04-14 11:55:11 INFO:  test-node-gpu.js test sensitive -2022-04-14 11:55:11 STATE: test-node-gpu.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796928} -2022-04-14 11:55:11 STATE: test-node-gpu.js event: image -2022-04-14 11:55:11 STATE: test-node-gpu.js event: detect -2022-04-14 11:55:11 STATE: test-node-gpu.js passed: detect: samples/in/ai-body.jpg default -2022-04-14 11:55:11 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 2 gesture: 8 object: 1 person: 1 {"score":1,"age":23.7,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} -2022-04-14 11:55:11 DATA:  test-node-gpu.js result: performance: load: null total: 245 -2022-04-14 11:55:11 STATE: test-node-gpu.js passed: sensitive result match -2022-04-14 11:55:11 STATE: test-node-gpu.js passed: sensitive face result match -2022-04-14 11:55:11 STATE: test-node-gpu.js passed: sensitive face emotion result [{"score":0.59,"emotion":"angry"},{"score":0.29,"emotion":"fear"}] -2022-04-14 11:55:11 STATE: test-node-gpu.js passed: sensitive body result match -2022-04-14 11:55:11 STATE: test-node-gpu.js passed: sensitive hand result match -2022-04-14 11:55:11 INFO:  test-node-gpu.js test detectors -2022-04-14 11:55:11 STATE: test-node-gpu.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796928} -2022-04-14 11:55:11 STATE: test-node-gpu.js event: image -2022-04-14 11:55:12 STATE: test-node-gpu.js event: detect -2022-04-14 11:55:12 STATE: test-node-gpu.js passed: detect: samples/in/ai-body.jpg default -2022-04-14 11:55:12 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 1 gesture: 0 object: 1 person: 1 {"score":0.93} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} -2022-04-14 11:55:12 DATA:  test-node-gpu.js result: performance: load: null total: 131 -2022-04-14 11:55:12 STATE: test-node-gpu.js passed: detector result face match -2022-04-14 11:55:12 STATE: test-node-gpu.js passed: detector result hand match -2022-04-14 11:55:12 INFO:  test-node-gpu.js test: multi-instance -2022-04-14 11:55:12 STATE: test-node-gpu.js event: image -2022-04-14 11:55:12 STATE: test-node-gpu.js event: detect -2022-04-14 11:55:12 STATE: test-node-gpu.js passed: detect: random default -2022-04-14 11:55:12 DATA:  test-node-gpu.js result: face: 0 body: 1 hand: 0 gesture: 0 object: 0 person: 0 {} {} {"score":0.07,"keypoints":15} -2022-04-14 11:55:12 DATA:  test-node-gpu.js result: performance: load: null total: 88 -2022-04-14 11:55:12 INFO:  test-node-gpu.js test: first instance -2022-04-14 11:55:12 STATE: test-node-gpu.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151289056} -2022-04-14 11:55:12 STATE: test-node-gpu.js passed: detect: samples/in/ai-upper.jpg default -2022-04-14 11:55:12 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 0 object: 1 person: 1 {"score":0.96} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":16} -2022-04-14 11:55:12 DATA:  test-node-gpu.js result: performance: load: null total: 104 -2022-04-14 11:55:12 INFO:  test-node-gpu.js test: second instance -2022-04-14 11:55:12 STATE: test-node-gpu.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151289056} -2022-04-14 11:55:12 STATE: test-node-gpu.js passed: detect: samples/in/ai-upper.jpg default -2022-04-14 11:55:12 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 0 object: 1 person: 1 {"score":0.96} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":16} -2022-04-14 11:55:12 DATA:  test-node-gpu.js result: performance: load: null total: 95 -2022-04-14 11:55:12 INFO:  test-node-gpu.js test: concurrent -2022-04-14 11:55:12 STATE: test-node-gpu.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34696120} -2022-04-14 11:55:12 STATE: test-node-gpu.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34696120} -2022-04-14 11:55:12 STATE: test-node-gpu.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796928} -2022-04-14 11:55:12 STATE: test-node-gpu.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796928} -2022-04-14 11:55:12 STATE: test-node-gpu.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151289056} -2022-04-14 11:55:13 STATE: test-node-gpu.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151289056} -2022-04-14 11:55:13 STATE: test-node-gpu.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34696120} -2022-04-14 11:55:13 STATE: test-node-gpu.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796928} -2022-04-14 11:55:13 STATE: test-node-gpu.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151289056} -2022-04-14 11:55:13 STATE: test-node-gpu.js event: image -2022-04-14 11:55:13 STATE: test-node-gpu.js event: image -2022-04-14 11:55:13 STATE: test-node-gpu.js event: image -2022-04-14 11:55:14 STATE: test-node-gpu.js passed: detect: samples/in/ai-upper.jpg default -2022-04-14 11:55:14 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 0 object: 1 person: 1 {"score":0.96} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":16} -2022-04-14 11:55:14 DATA:  test-node-gpu.js result: performance: load: null total: 1101 -2022-04-14 11:55:14 STATE: test-node-gpu.js passed: detect: samples/in/ai-upper.jpg default -2022-04-14 11:55:14 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 0 object: 1 person: 1 {"score":0.96} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":16} -2022-04-14 11:55:14 DATA:  test-node-gpu.js result: performance: load: null total: 1101 -2022-04-14 11:55:14 STATE: test-node-gpu.js passed: detect: samples/in/ai-face.jpg default -2022-04-14 11:55:14 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 1 gesture: 2 object: 1 person: 1 {"score":0.91} {"score":0.82,"class":"person"} {"score":0.47,"keypoints":17} -2022-04-14 11:55:14 DATA:  test-node-gpu.js result: performance: load: null total: 1167 -2022-04-14 11:55:14 STATE: test-node-gpu.js passed: detect: samples/in/ai-face.jpg default -2022-04-14 11:55:14 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 1 gesture: 2 object: 1 person: 1 {"score":0.91} {"score":0.82,"class":"person"} {"score":0.47,"keypoints":17} -2022-04-14 11:55:14 DATA:  test-node-gpu.js result: performance: load: null total: 1167 -2022-04-14 11:55:14 STATE: test-node-gpu.js passed: detect: samples/in/ai-body.jpg default -2022-04-14 11:55:14 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 1 gesture: 0 object: 1 person: 1 {"score":0.93} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} -2022-04-14 11:55:14 DATA:  test-node-gpu.js result: performance: load: null total: 1167 -2022-04-14 11:55:14 STATE: test-node-gpu.js passed: detect: samples/in/ai-body.jpg default -2022-04-14 11:55:14 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 1 gesture: 0 object: 1 person: 1 {"score":0.93} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} -2022-04-14 11:55:14 DATA:  test-node-gpu.js result: performance: load: null total: 1167 -2022-04-14 11:55:14 STATE: test-node-gpu.js event: detect -2022-04-14 11:55:14 STATE: test-node-gpu.js passed: detect: samples/in/ai-upper.jpg default -2022-04-14 11:55:14 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 0 object: 1 person: 1 {"score":0.96} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":16} -2022-04-14 11:55:14 DATA:  test-node-gpu.js result: performance: load: null total: 888 -2022-04-14 11:55:14 STATE: test-node-gpu.js event: detect -2022-04-14 11:55:14 STATE: test-node-gpu.js event: detect -2022-04-14 11:55:14 STATE: test-node-gpu.js passed: detect: samples/in/ai-face.jpg default -2022-04-14 11:55:14 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 1 gesture: 2 object: 1 person: 1 {"score":0.91} {"score":0.82,"class":"person"} {"score":0.47,"keypoints":17} -2022-04-14 11:55:14 DATA:  test-node-gpu.js result: performance: load: null total: 888 -2022-04-14 11:55:14 STATE: test-node-gpu.js passed: detect: samples/in/ai-body.jpg default -2022-04-14 11:55:14 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 1 gesture: 0 object: 1 person: 1 {"score":0.93} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} -2022-04-14 11:55:14 DATA:  test-node-gpu.js result: performance: load: null total: 888 -2022-04-14 11:55:14 INFO:  test-node-gpu.js test: monkey-patch -2022-04-14 11:55:14 STATE: test-node-gpu.js event: image -2022-04-14 11:55:14 STATE: test-node-gpu.js event: detect -2022-04-14 11:55:14 STATE: test-node-gpu.js passed: monkey patch -2022-04-14 11:55:14 STATE: test-node-gpu.js passed: segmentation [65536] -2022-04-14 11:55:14 STATE: test-node-gpu.js passeed: equal usage -2022-04-14 11:55:14 INFO:  test-node-gpu.js test: input compare -2022-04-14 11:55:14 STATE: test-node-gpu.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34696120} -2022-04-14 11:55:14 STATE: test-node-gpu.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796928} -2022-04-14 11:55:14 STATE: test-node-gpu.js passed: image compare 0 23.275441687091504 -2022-04-14 11:55:14 INFO:  test-node-gpu.js events: {"image":21,"detect":21,"warmup":2} -2022-04-14 11:55:14 INFO:  test-node-gpu.js tensors 1925 -2022-04-14 11:55:14 INFO:  test-node-gpu.js test complete: 12473 ms -2022-04-14 11:55:15 INFO:  -2022-04-14 11:55:15 INFO:  test-node-wasm.js start -2022-04-14 11:55:15 STATE: test-node-wasm.js passed: model server: https://vladmandic.github.io/human/models/ -2022-04-14 11:55:15 INFO:  test-node-wasm.js test: configuration validation -2022-04-14 11:55:15 STATE: test-node-wasm.js passed: configuration default validation [] -2022-04-14 11:55:15 STATE: test-node-wasm.js passed: configuration invalid validation [{"reason":"unknown property","where":"config.invalid = true"}] -2022-04-14 11:55:15 INFO:  test-node-wasm.js test: model load -2022-04-14 11:55:16 STATE: test-node-wasm.js passed: models loaded 22 12 [{"name":"ssrnetage","loaded":false},{"name":"gear","loaded":false},{"name":"blazeposedetect","loaded":false},{"name":"blazepose","loaded":false},{"name":"centernet","loaded":true},{"name":"efficientpose","loaded":false},{"name":"mobilefacenet","loaded":false},{"name":"emotion","loaded":true},{"name":"facedetect","loaded":true},{"name":"faceiris","loaded":true},{"name":"facemesh","loaded":true},{"name":"faceres","loaded":true},{"name":"ssrnetgender","loaded":false},{"name":"handpose","loaded":false},{"name":"handskeleton","loaded":true},{"name":"handtrack","loaded":true},{"name":"liveness","loaded":true},{"name":"movenet","loaded":true},{"name":"nanodet","loaded":false},{"name":"posenet","loaded":false},{"name":"segmentation","loaded":true},{"name":"antispoof","loaded":true}] -2022-04-14 11:55:16 INFO:  test-node-wasm.js test: warmup -2022-04-14 11:55:16 STATE: test-node-wasm.js passed: create human -2022-04-14 11:55:16 INFO:  test-node-wasm.js human version: 2.7.0 -2022-04-14 11:55:16 INFO:  test-node-wasm.js platform: linux x64 agent: NodeJS v17.4.0 -2022-04-14 11:55:16 INFO:  test-node-wasm.js tfjs version: 3.15.0 -2022-04-14 11:55:16 STATE: test-node-wasm.js passed: set backend: wasm -2022-04-14 11:55:16 STATE: test-node-wasm.js tensors 1919 -2022-04-14 11:55:16 STATE: test-node-wasm.js passed: load models -2022-04-14 11:55:16 STATE: test-node-wasm.js result: defined models: 22 loaded models: 12 -2022-04-14 11:55:16 STATE: test-node-wasm.js passed: warmup: none default -2022-04-14 11:55:16 DATA:  test-node-wasm.js result: face: 0 body: 0 hand: 0 gesture: 0 object: 0 person: 0 {} {} {} -2022-04-14 11:55:16 DATA:  test-node-wasm.js result: performance: load: null total: null -2022-04-14 11:55:16 STATE: test-node-wasm.js passed: warmup none result match -2022-04-14 11:55:16 STATE: test-node-wasm.js event: image -2022-04-14 11:55:17 STATE: test-node-wasm.js event: detect -2022-04-14 11:55:17 STATE: test-node-wasm.js event: warmup -2022-04-14 11:55:17 STATE: test-node-wasm.js passed: warmup: face default -2022-04-14 11:55:17 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.5,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.47,"keypoints":3} -2022-04-14 11:55:17 DATA:  test-node-wasm.js result: performance: load: null total: 617 -2022-04-14 11:55:17 STATE: test-node-wasm.js passed: warmup face result match -2022-04-14 11:55:17 STATE: test-node-wasm.js event: image -2022-04-14 11:55:17 STATE: test-node-wasm.js event: detect -2022-04-14 11:55:17 STATE: test-node-wasm.js event: warmup -2022-04-14 11:55:17 STATE: test-node-wasm.js passed: warmup: body default -2022-04-14 11:55:17 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.7,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} -2022-04-14 11:55:17 DATA:  test-node-wasm.js result: performance: load: null total: 403 -2022-04-14 11:55:17 STATE: test-node-wasm.js passed: warmup body result match -2022-04-14 11:55:17 STATE: test-node-wasm.js details: {"face":{"boxScore":0.93,"faceScore":1,"age":23.7,"gender":"female","genderScore":0.97},"emotion":[{"score":0.59,"emotion":"angry"},{"score":0.29,"emotion":"fear"}],"body":{"score":0.92,"keypoints":17},"hand":{"boxScore":0.51,"fingerScore":0.73,"keypoints":21},"gestures":[{"face":0,"gesture":"facing right"},{"hand":0,"gesture":"pinky forward"},{"hand":0,"gesture":"palm up"},{"hand":0,"gesture":"open palm"},{"iris":0,"gesture":"looking left"},{"iris":0,"gesture":"looking up"}]} -2022-04-14 11:55:17 INFO:  test-node-wasm.js test: details verification -2022-04-14 11:55:18 STATE: test-node-wasm.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1038921856} -2022-04-14 11:55:18 STATE: test-node-wasm.js event: image -2022-04-14 11:55:18 STATE: test-node-wasm.js event: detect -2022-04-14 11:55:18 STATE: test-node-wasm.js passed: detect: samples/in/ai-body.jpg default -2022-04-14 11:55:18 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.7,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} -2022-04-14 11:55:18 DATA:  test-node-wasm.js result: performance: load: null total: 392 -2022-04-14 11:55:18 STATE: test-node-wasm.js passed: details face length 1 -2022-04-14 11:55:18 STATE: test-node-wasm.js passed: details face score 1 0.93 1 -2022-04-14 11:55:18 STATE: test-node-wasm.js passed: details face age/gender 23.7 female 0.97 73.26 -2022-04-14 11:55:18 STATE: test-node-wasm.js passed: details face arrays 4 478 1024 -2022-04-14 11:55:18 STATE: test-node-wasm.js passed: details face emotion 2 {"score":0.59,"emotion":"angry"} -2022-04-14 11:55:18 STATE: test-node-wasm.js passed: details face anti-spoofing 0.79 -2022-04-14 11:55:18 STATE: test-node-wasm.js passed: details face liveness 0.83 -2022-04-14 11:55:18 STATE: test-node-wasm.js passed: details body length 1 -2022-04-14 11:55:18 STATE: test-node-wasm.js passed: details body 0.92 17 6 -2022-04-14 11:55:18 STATE: test-node-wasm.js passed: details hand length 1 -2022-04-14 11:55:18 STATE: test-node-wasm.js passed: details hand 0.51 0.73 point -2022-04-14 11:55:18 STATE: test-node-wasm.js passed: details hand arrays 21 5 7 -2022-04-14 11:55:18 STATE: test-node-wasm.js passed: details gesture length 6 -2022-04-14 11:55:18 STATE: test-node-wasm.js passed: details gesture first {"face":0,"gesture":"facing right"} -2022-04-14 11:55:18 STATE: test-node-wasm.js passed: details object length 1 -2022-04-14 11:55:18 STATE: test-node-wasm.js passed: details object 0.72 person -2022-04-14 11:55:18 STATE: test-node-wasm.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,4] {"checksum":1413675264} -2022-04-14 11:55:18 STATE: test-node-wasm.js event: image -2022-04-14 11:55:19 STATE: test-node-wasm.js event: detect -2022-04-14 11:55:19 STATE: test-node-wasm.js passed: tensor shape: [1,1200,1200,4] dtype: float32 -2022-04-14 11:55:19 STATE: test-node-wasm.js passed: load image: samples/in/ai-body.jpg [1200,1200,4] {"checksum":1413675264} -2022-04-14 11:55:19 STATE: test-node-wasm.js event: image -2022-04-14 11:55:19 STATE: test-node-wasm.js event: detect -2022-04-14 11:55:19 STATE: test-node-wasm.js passed: tensor shape: [1200,1200,4] dtype: float32 -2022-04-14 11:55:20 STATE: test-node-wasm.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1038921856} -2022-04-14 11:55:20 STATE: test-node-wasm.js event: image -2022-04-14 11:55:20 STATE: test-node-wasm.js event: detect -2022-04-14 11:55:20 STATE: test-node-wasm.js passed: tensor shape: [1,1200,1200,3] dtype: float32 -2022-04-14 11:55:20 STATE: test-node-wasm.js passed: load image: samples/in/ai-body.jpg [1200,1200,3] {"checksum":1038921856} -2022-04-14 11:55:20 STATE: test-node-wasm.js event: image -2022-04-14 11:55:21 STATE: test-node-wasm.js event: detect -2022-04-14 11:55:21 STATE: test-node-wasm.js passed: tensor shape: [1200,1200,3] dtype: float32 -2022-04-14 11:55:21 STATE: test-node-wasm.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,4] {"checksum":1371996871} -2022-04-14 11:55:21 STATE: test-node-wasm.js event: image -2022-04-14 11:55:21 STATE: test-node-wasm.js event: detect -2022-04-14 11:55:21 STATE: test-node-wasm.js passed: tensor shape: [1,1200,1200,4] dtype: int32 -2022-04-14 11:55:21 INFO:  test-node-wasm.js test default -2022-04-14 11:55:22 STATE: test-node-wasm.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1038921856} -2022-04-14 11:55:22 STATE: test-node-wasm.js event: image -2022-04-14 11:55:22 STATE: test-node-wasm.js event: detect -2022-04-14 11:55:22 STATE: test-node-wasm.js passed: detect: samples/in/ai-body.jpg default -2022-04-14 11:55:22 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":29.6,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} -2022-04-14 11:55:22 DATA:  test-node-wasm.js result: performance: load: null total: 361 -2022-04-14 11:55:22 STATE: test-node-wasm.js passed: default result face match 1 female 0.97 -2022-04-14 11:55:22 INFO:  test-node-wasm.js test sync -2022-04-14 11:55:22 STATE: test-node-wasm.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1038921856} -2022-04-14 11:55:22 STATE: test-node-wasm.js event: image -2022-04-14 11:55:23 STATE: test-node-wasm.js event: detect -2022-04-14 11:55:23 STATE: test-node-wasm.js passed: detect: samples/in/ai-body.jpg default -2022-04-14 11:55:23 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":29.6,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} -2022-04-14 11:55:23 DATA:  test-node-wasm.js result: performance: load: null total: 383 -2022-04-14 11:55:23 STATE: test-node-wasm.js passed: default sync 1 female 0.97 -2022-04-14 11:55:23 INFO:  test-node-wasm.js test: image process -2022-04-14 11:55:23 STATE: test-node-wasm.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34697856} -2022-04-14 11:55:23 STATE: test-node-wasm.js passed: image input null [1,256,256,3] -2022-04-14 11:55:23 INFO:  test-node-wasm.js test: image null -2022-04-14 11:55:23 STATE: test-node-wasm.js passed: invalid input could not convert input to tensor -2022-04-14 11:55:23 INFO:  test-node-wasm.js test face similarity -2022-04-14 11:55:23 STATE: test-node-wasm.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34697856} -2022-04-14 11:55:23 STATE: test-node-wasm.js event: image -2022-04-14 11:55:23 STATE: test-node-wasm.js event: detect -2022-04-14 11:55:23 STATE: test-node-wasm.js passed: detect: samples/in/ai-face.jpg default -2022-04-14 11:55:23 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.5,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.47,"keypoints":3} -2022-04-14 11:55:23 DATA:  test-node-wasm.js result: performance: load: null total: 348 -2022-04-14 11:55:23 STATE: test-node-wasm.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1038921856} -2022-04-14 11:55:23 STATE: test-node-wasm.js event: image -2022-04-14 11:55:24 STATE: test-node-wasm.js event: detect -2022-04-14 11:55:24 STATE: test-node-wasm.js passed: detect: samples/in/ai-body.jpg default -2022-04-14 11:55:24 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":29.6,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} -2022-04-14 11:55:24 DATA:  test-node-wasm.js result: performance: load: null total: 377 -2022-04-14 11:55:24 STATE: test-node-wasm.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151155104} -2022-04-14 11:55:24 STATE: test-node-wasm.js event: image -2022-04-14 11:55:24 STATE: test-node-wasm.js event: detect -2022-04-14 11:55:24 STATE: test-node-wasm.js passed: detect: samples/in/ai-upper.jpg default -2022-04-14 11:55:24 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"score":1,"age":23.5,"gender":"female"} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":7} -2022-04-14 11:55:24 DATA:  test-node-wasm.js result: performance: load: null total: 326 -2022-04-14 11:55:24 STATE: test-node-wasm.js passed: face descriptor -2022-04-14 11:55:24 STATE: test-node-wasm.js passed: face similarity {"similarity":[1,0.5266119940661309,0.4858842904087851],"descriptors":[1024,1024,1024]} -2022-04-14 11:55:24 INFO:  test-node-wasm.js test face matching -2022-04-14 11:55:24 STATE: test-node-wasm.js passed: face database 40 -2022-04-14 11:55:24 STATE: test-node-wasm.js passed: face match {"first":{"index":4,"similarity":0.7827852754786533}} {"second":{"index":4,"similarity":0.5660821189104794}} {"third":{"index":4,"similarity":0.45074189882665594}} -2022-04-14 11:55:24 INFO:  test-node-wasm.js test object -2022-04-14 11:55:24 STATE: test-node-wasm.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1038921856} -2022-04-14 11:55:24 STATE: test-node-wasm.js event: image -2022-04-14 11:55:25 STATE: test-node-wasm.js event: detect -2022-04-14 11:55:25 STATE: test-node-wasm.js passed: detect: samples/in/ai-body.jpg default -2022-04-14 11:55:25 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":29.6,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} -2022-04-14 11:55:25 DATA:  test-node-wasm.js result: performance: load: null total: 370 -2022-04-14 11:55:25 STATE: test-node-wasm.js passed: object result match -2022-04-14 11:55:25 INFO:  test-node-wasm.js test sensitive -2022-04-14 11:55:25 STATE: test-node-wasm.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1038921856} -2022-04-14 11:55:25 STATE: test-node-wasm.js event: image -2022-04-14 11:55:25 STATE: test-node-wasm.js event: detect -2022-04-14 11:55:25 STATE: test-node-wasm.js passed: detect: samples/in/ai-body.jpg default -2022-04-14 11:55:25 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 2 gesture: 8 object: 1 person: 1 {"score":1,"age":29.6,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} -2022-04-14 11:55:25 DATA:  test-node-wasm.js result: performance: load: null total: 390 -2022-04-14 11:55:25 STATE: test-node-wasm.js passed: sensitive result match -2022-04-14 11:55:25 STATE: test-node-wasm.js passed: sensitive face result match -2022-04-14 11:55:25 STATE: test-node-wasm.js passed: sensitive face emotion result [{"score":0.46,"emotion":"neutral"},{"score":0.24,"emotion":"fear"},{"score":0.17,"emotion":"sad"}] -2022-04-14 11:55:25 STATE: test-node-wasm.js passed: sensitive body result match -2022-04-14 11:55:25 STATE: test-node-wasm.js passed: sensitive hand result match -2022-04-14 11:55:25 INFO:  test-node-wasm.js test detectors -2022-04-14 11:55:25 STATE: test-node-wasm.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1038921856} -2022-04-14 11:55:25 STATE: test-node-wasm.js event: image -2022-04-14 11:55:26 STATE: test-node-wasm.js event: detect -2022-04-14 11:55:26 STATE: test-node-wasm.js passed: detect: samples/in/ai-body.jpg default -2022-04-14 11:55:26 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 1 gesture: 0 object: 1 person: 1 {"score":0.93} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} -2022-04-14 11:55:26 DATA:  test-node-wasm.js result: performance: load: null total: 259 -2022-04-14 11:55:26 STATE: test-node-wasm.js passed: detector result face match -2022-04-14 11:55:26 STATE: test-node-wasm.js passed: detector result hand match -2022-04-14 11:55:26 INFO:  test-node-wasm.js test: multi-instance -2022-04-14 11:55:26 STATE: test-node-wasm.js event: image -2022-04-14 11:55:26 STATE: test-node-wasm.js event: detect -2022-04-14 11:55:26 STATE: test-node-wasm.js passed: detect: random default -2022-04-14 11:55:26 DATA:  test-node-wasm.js result: face: 0 body: 1 hand: 0 gesture: 0 object: 0 person: 0 {} {} {"score":0.07,"keypoints":15} -2022-04-14 11:55:26 DATA:  test-node-wasm.js result: performance: load: null total: 222 -2022-04-14 11:55:26 INFO:  test-node-wasm.js test: first instance -2022-04-14 11:55:26 STATE: test-node-wasm.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151155104} -2022-04-14 11:55:26 STATE: test-node-wasm.js passed: detect: samples/in/ai-upper.jpg default -2022-04-14 11:55:26 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 0 gesture: 0 object: 1 person: 1 {"score":0.96} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":16} -2022-04-14 11:55:26 DATA:  test-node-wasm.js result: performance: load: null total: 248 -2022-04-14 11:55:26 INFO:  test-node-wasm.js test: second instance -2022-04-14 11:55:26 STATE: test-node-wasm.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151155104} -2022-04-14 11:55:27 STATE: test-node-wasm.js passed: detect: samples/in/ai-upper.jpg default -2022-04-14 11:55:27 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 0 gesture: 0 object: 1 person: 1 {"score":0.96} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":16} -2022-04-14 11:55:27 DATA:  test-node-wasm.js result: performance: load: null total: 266 -2022-04-14 11:55:27 INFO:  test-node-wasm.js test: concurrent -2022-04-14 11:55:27 STATE: test-node-wasm.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34697856} -2022-04-14 11:55:27 STATE: test-node-wasm.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34697856} -2022-04-14 11:55:27 STATE: test-node-wasm.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1038921856} -2022-04-14 11:55:27 STATE: test-node-wasm.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1038921856} -2022-04-14 11:55:27 STATE: test-node-wasm.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151155104} -2022-04-14 11:55:27 STATE: test-node-wasm.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151155104} -2022-04-14 11:55:27 STATE: test-node-wasm.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34697856} -2022-04-14 11:55:28 STATE: test-node-wasm.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1038921856} -2022-04-14 11:55:28 STATE: test-node-wasm.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151155104} -2022-04-14 11:55:28 STATE: test-node-wasm.js event: image -2022-04-14 11:55:28 STATE: test-node-wasm.js event: image -2022-04-14 11:55:28 STATE: test-node-wasm.js event: image -2022-04-14 11:55:30 STATE: test-node-wasm.js passed: detect: samples/in/ai-upper.jpg default -2022-04-14 11:55:30 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 0 gesture: 0 object: 1 person: 1 {"score":0.96} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":16} -2022-04-14 11:55:30 DATA:  test-node-wasm.js result: performance: load: null total: 2408 -2022-04-14 11:55:30 STATE: test-node-wasm.js passed: detect: samples/in/ai-upper.jpg default -2022-04-14 11:55:30 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 0 gesture: 0 object: 1 person: 1 {"score":0.96} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":16} -2022-04-14 11:55:30 DATA:  test-node-wasm.js result: performance: load: null total: 2408 -2022-04-14 11:55:30 STATE: test-node-wasm.js passed: detect: samples/in/ai-face.jpg default -2022-04-14 11:55:30 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 1 gesture: 2 object: 1 person: 1 {"score":0.91} {"score":0.82,"class":"person"} {"score":0.47,"keypoints":17} -2022-04-14 11:55:30 DATA:  test-node-wasm.js result: performance: load: null total: 2650 -2022-04-14 11:55:30 STATE: test-node-wasm.js passed: detect: samples/in/ai-face.jpg default -2022-04-14 11:55:30 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 1 gesture: 2 object: 1 person: 1 {"score":0.91} {"score":0.82,"class":"person"} {"score":0.47,"keypoints":17} -2022-04-14 11:55:30 DATA:  test-node-wasm.js result: performance: load: null total: 2650 -2022-04-14 11:55:30 STATE: test-node-wasm.js passed: detect: samples/in/ai-body.jpg default -2022-04-14 11:55:30 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 1 gesture: 0 object: 1 person: 1 {"score":0.93} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} -2022-04-14 11:55:30 DATA:  test-node-wasm.js result: performance: load: null total: 2650 -2022-04-14 11:55:30 STATE: test-node-wasm.js passed: detect: samples/in/ai-body.jpg default -2022-04-14 11:55:30 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 1 gesture: 0 object: 1 person: 1 {"score":0.93} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} -2022-04-14 11:55:30 DATA:  test-node-wasm.js result: performance: load: null total: 2650 -2022-04-14 11:55:30 STATE: test-node-wasm.js event: detect -2022-04-14 11:55:30 STATE: test-node-wasm.js passed: detect: samples/in/ai-upper.jpg default -2022-04-14 11:55:30 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 0 gesture: 0 object: 1 person: 1 {"score":0.96} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":16} -2022-04-14 11:55:30 DATA:  test-node-wasm.js result: performance: load: null total: 2312 -2022-04-14 11:55:30 STATE: test-node-wasm.js event: detect -2022-04-14 11:55:30 STATE: test-node-wasm.js event: detect -2022-04-14 11:55:30 STATE: test-node-wasm.js passed: detect: samples/in/ai-face.jpg default -2022-04-14 11:55:30 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 1 gesture: 2 object: 1 person: 1 {"score":0.91} {"score":0.82,"class":"person"} {"score":0.47,"keypoints":17} -2022-04-14 11:55:30 DATA:  test-node-wasm.js result: performance: load: null total: 2312 -2022-04-14 11:55:30 STATE: test-node-wasm.js passed: detect: samples/in/ai-body.jpg default -2022-04-14 11:55:30 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 1 gesture: 0 object: 1 person: 1 {"score":0.93} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} -2022-04-14 11:55:30 DATA:  test-node-wasm.js result: performance: load: null total: 2312 -2022-04-14 11:55:30 INFO:  test-node-wasm.js test: monkey-patch -2022-04-14 11:55:30 STATE: test-node-wasm.js event: image -2022-04-14 11:55:30 STATE: test-node-wasm.js event: detect -2022-04-14 11:55:30 STATE: test-node-wasm.js passed: monkey patch -2022-04-14 11:55:30 STATE: test-node-wasm.js passed: segmentation [65536] -2022-04-14 11:55:30 STATE: test-node-wasm.js passeed: equal usage -2022-04-14 11:55:30 INFO:  test-node-wasm.js test: input compare -2022-04-14 11:55:30 STATE: test-node-wasm.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34697856} -2022-04-14 11:55:31 STATE: test-node-wasm.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1038921856} -2022-04-14 11:55:31 STATE: test-node-wasm.js passed: image compare 0 23.280073018790848 -2022-04-14 11:55:31 INFO:  test-node-wasm.js events: {"image":21,"detect":21,"warmup":2} -2022-04-14 11:55:31 INFO:  test-node-wasm.js tensors 1927 -2022-04-14 11:55:31 INFO:  test-node-wasm.js test complete: 15281 ms -2022-04-14 11:55:31 INFO:  all tests complete -2022-04-14 11:55:31 INFO:  failed: {"count":0,"messages":[]} -2022-04-14 11:55:31 INFO:  status: {"test":"test-node.js","passed":101,"failed":0} -2022-04-14 11:55:31 INFO:  status: {"test":"test-node-gpu.js","passed":101,"failed":0} -2022-04-14 11:55:31 INFO:  status: {"test":"test-node-wasm.js","passed":102,"failed":0} +2022-04-15 07:53:33 INFO:  @vladmandic/human version 2.7.0 +2022-04-15 07:53:33 INFO:  User: vlado Platform: linux Arch: x64 Node: v17.4.0 +2022-04-15 07:53:33 INFO:  tests: ["test-node.js","test-node-gpu.js","test-node-wasm.js"] +2022-04-15 07:53:33 INFO:  demos: ["../demo/nodejs/node.js","../demo/nodejs/node-canvas.js","../demo/nodejs/node-env.js","../demo/nodejs/node-event.js","../demo/nodejs/node-multiprocess.js"] +2022-04-15 07:53:33 INFO:  +2022-04-15 07:53:33 INFO:  test-node.js start +2022-04-15 07:53:33 INFO:  test-node.js test: configuration validation +2022-04-15 07:53:33 STATE: test-node.js passed: configuration default validation [] +2022-04-15 07:53:33 STATE: test-node.js passed: configuration invalid validation [{"reason":"unknown property","where":"config.invalid = true"}] +2022-04-15 07:53:33 INFO:  test-node.js test: model load +2022-04-15 07:53:33 STATE: test-node.js passed: models loaded 22 12 [{"name":"ssrnetage","loaded":false},{"name":"gear","loaded":false},{"name":"blazeposedetect","loaded":false},{"name":"blazepose","loaded":false},{"name":"centernet","loaded":true},{"name":"efficientpose","loaded":false},{"name":"mobilefacenet","loaded":false},{"name":"emotion","loaded":true},{"name":"facedetect","loaded":true},{"name":"faceiris","loaded":true},{"name":"facemesh","loaded":true},{"name":"faceres","loaded":true},{"name":"ssrnetgender","loaded":false},{"name":"handpose","loaded":false},{"name":"handskeleton","loaded":true},{"name":"handtrack","loaded":true},{"name":"liveness","loaded":true},{"name":"movenet","loaded":true},{"name":"nanodet","loaded":false},{"name":"posenet","loaded":false},{"name":"segmentation","loaded":true},{"name":"antispoof","loaded":true}] +2022-04-15 07:53:33 INFO:  test-node.js test: warmup +2022-04-15 07:53:33 STATE: test-node.js passed: create human +2022-04-15 07:53:33 INFO:  test-node.js human version: 2.7.0 +2022-04-15 07:53:33 INFO:  test-node.js platform: linux x64 agent: NodeJS v17.4.0 +2022-04-15 07:53:33 INFO:  test-node.js tfjs version: 3.15.0 +2022-04-15 07:53:33 INFO:  test-node.js tensorflow binding version: 2.7.0-dev20211101 +2022-04-15 07:53:33 STATE: test-node.js passed: set backend: tensorflow +2022-04-15 07:53:33 STATE: test-node.js tensors 1919 +2022-04-15 07:53:33 STATE: test-node.js passed: load models +2022-04-15 07:53:33 STATE: test-node.js result: defined models: 22 loaded models: 12 +2022-04-15 07:53:33 STATE: test-node.js passed: warmup: none default +2022-04-15 07:53:33 DATA:  test-node.js result: face: 0 body: 0 hand: 0 gesture: 0 object: 0 person: 0 {} {} {} +2022-04-15 07:53:33 DATA:  test-node.js result: performance: load: null total: null +2022-04-15 07:53:33 STATE: test-node.js passed: warmup none result match +2022-04-15 07:53:33 STATE: test-node.js event: image +2022-04-15 07:53:33 STATE: test-node.js event: detect +2022-04-15 07:53:33 STATE: test-node.js event: warmup +2022-04-15 07:53:33 STATE: test-node.js passed: warmup: face default +2022-04-15 07:53:33 DATA:  test-node.js result: face: 1 body: 1 hand: 1 gesture: 7 object: 1 person: 1 {"score":1,"age":23.5,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.42,"keypoints":4} +2022-04-15 07:53:33 DATA:  test-node.js result: performance: load: null total: 343 +2022-04-15 07:53:33 STATE: test-node.js passed: warmup face result match +2022-04-15 07:53:33 STATE: test-node.js event: image +2022-04-15 07:53:34 STATE: test-node.js event: detect +2022-04-15 07:53:34 STATE: test-node.js event: warmup +2022-04-15 07:53:34 STATE: test-node.js passed: warmup: body default +2022-04-15 07:53:34 DATA:  test-node.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.7,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} +2022-04-15 07:53:34 DATA:  test-node.js result: performance: load: null total: 259 +2022-04-15 07:53:34 STATE: test-node.js passed: warmup body result match +2022-04-15 07:53:34 STATE: test-node.js details: {"face":{"boxScore":0.92,"faceScore":1,"age":23.7,"gender":"female","genderScore":0.97},"emotion":[{"score":0.63,"emotion":"angry"},{"score":0.22,"emotion":"fear"}],"body":{"score":0.92,"keypoints":17},"hand":{"boxScore":0.52,"fingerScore":0.73,"keypoints":21},"gestures":[{"face":0,"gesture":"facing right"},{"hand":0,"gesture":"pinky forward"},{"hand":0,"gesture":"palm up"},{"hand":0,"gesture":"open palm"},{"iris":0,"gesture":"looking right"},{"iris":0,"gesture":"looking up"}]} +2022-04-15 07:53:34 INFO:  test-node.js test: details verification +2022-04-15 07:53:34 STATE: test-node.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796864} +2022-04-15 07:53:34 STATE: test-node.js event: image +2022-04-15 07:53:34 STATE: test-node.js event: detect +2022-04-15 07:53:34 STATE: test-node.js passed: detect: samples/in/ai-body.jpg default +2022-04-15 07:53:34 DATA:  test-node.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.7,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} +2022-04-15 07:53:34 DATA:  test-node.js result: performance: load: null total: 244 +2022-04-15 07:53:34 STATE: test-node.js passed: details face length 1 +2022-04-15 07:53:34 STATE: test-node.js passed: details face score 1 0.93 1 +2022-04-15 07:53:34 STATE: test-node.js passed: details face age/gender 23.7 female 0.97 73.26 +2022-04-15 07:53:34 STATE: test-node.js passed: details face arrays 4 478 1024 +2022-04-15 07:53:34 STATE: test-node.js passed: details face emotion 2 {"score":0.59,"emotion":"angry"} +2022-04-15 07:53:34 STATE: test-node.js passed: details face anti-spoofing 0.79 +2022-04-15 07:53:34 STATE: test-node.js passed: details face liveness 0.83 +2022-04-15 07:53:34 STATE: test-node.js passed: details body length 1 +2022-04-15 07:53:34 STATE: test-node.js passed: details body 0.92 17 6 +2022-04-15 07:53:34 STATE: test-node.js passed: details hand length 1 +2022-04-15 07:53:34 STATE: test-node.js passed: details hand 0.51 0.73 point +2022-04-15 07:53:34 STATE: test-node.js passed: details hand arrays 21 5 7 +2022-04-15 07:53:34 STATE: test-node.js passed: details gesture length 6 +2022-04-15 07:53:34 STATE: test-node.js passed: details gesture first {"face":0,"gesture":"facing right"} +2022-04-15 07:53:34 STATE: test-node.js passed: details object length 1 +2022-04-15 07:53:34 STATE: test-node.js passed: details object 0.72 person +2022-04-15 07:53:34 STATE: test-node.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,4] {"checksum":1371996928} +2022-04-15 07:53:34 STATE: test-node.js event: image +2022-04-15 07:53:34 STATE: test-node.js event: detect +2022-04-15 07:53:34 STATE: test-node.js passed: tensor shape: [1,1200,1200,4] dtype: float32 +2022-04-15 07:53:35 STATE: test-node.js passed: load image: samples/in/ai-body.jpg [1200,1200,4] {"checksum":1371996928} +2022-04-15 07:53:35 STATE: test-node.js event: image +2022-04-15 07:53:35 STATE: test-node.js event: detect +2022-04-15 07:53:35 STATE: test-node.js passed: tensor shape: [1200,1200,4] dtype: float32 +2022-04-15 07:53:35 STATE: test-node.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796864} +2022-04-15 07:53:35 STATE: test-node.js event: image +2022-04-15 07:53:35 STATE: test-node.js event: detect +2022-04-15 07:53:35 STATE: test-node.js passed: tensor shape: [1,1200,1200,3] dtype: float32 +2022-04-15 07:53:36 STATE: test-node.js passed: load image: samples/in/ai-body.jpg [1200,1200,3] {"checksum":1004796864} +2022-04-15 07:53:36 STATE: test-node.js event: image +2022-04-15 07:53:36 STATE: test-node.js event: detect +2022-04-15 07:53:36 STATE: test-node.js passed: tensor shape: [1200,1200,3] dtype: float32 +2022-04-15 07:53:36 STATE: test-node.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,4] {"checksum":1371996871} +2022-04-15 07:53:36 STATE: test-node.js event: image +2022-04-15 07:53:36 STATE: test-node.js event: detect +2022-04-15 07:53:36 STATE: test-node.js passed: tensor shape: [1,1200,1200,4] dtype: int32 +2022-04-15 07:53:36 INFO:  test-node.js test default +2022-04-15 07:53:36 STATE: test-node.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796864} +2022-04-15 07:53:36 STATE: test-node.js event: image +2022-04-15 07:53:37 STATE: test-node.js event: detect +2022-04-15 07:53:37 STATE: test-node.js passed: detect: samples/in/ai-body.jpg default +2022-04-15 07:53:37 DATA:  test-node.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.7,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} +2022-04-15 07:53:37 DATA:  test-node.js result: performance: load: null total: 214 +2022-04-15 07:53:37 STATE: test-node.js passed: default result face match 1 female 0.97 +2022-04-15 07:53:37 INFO:  test-node.js test sync +2022-04-15 07:53:37 STATE: test-node.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796864} +2022-04-15 07:53:37 STATE: test-node.js event: image +2022-04-15 07:53:37 STATE: test-node.js event: detect +2022-04-15 07:53:37 STATE: test-node.js passed: detect: samples/in/ai-body.jpg default +2022-04-15 07:53:37 DATA:  test-node.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.7,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} +2022-04-15 07:53:37 DATA:  test-node.js result: performance: load: null total: 211 +2022-04-15 07:53:37 STATE: test-node.js passed: default sync 1 female 0.97 +2022-04-15 07:53:37 INFO:  test-node.js test: image process +2022-04-15 07:53:37 STATE: test-node.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34696120} +2022-04-15 07:53:37 STATE: test-node.js passed: image input null [1,256,256,3] +2022-04-15 07:53:37 INFO:  test-node.js test: image null +2022-04-15 07:53:37 STATE: test-node.js passed: invalid input could not convert input to tensor +2022-04-15 07:53:37 INFO:  test-node.js test face similarity +2022-04-15 07:53:37 STATE: test-node.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34696120} +2022-04-15 07:53:37 STATE: test-node.js event: image +2022-04-15 07:53:37 STATE: test-node.js event: detect +2022-04-15 07:53:37 STATE: test-node.js passed: detect: samples/in/ai-face.jpg default +2022-04-15 07:53:37 DATA:  test-node.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.5,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.47,"keypoints":3} +2022-04-15 07:53:37 DATA:  test-node.js result: performance: load: null total: 217 +2022-04-15 07:53:37 STATE: test-node.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796864} +2022-04-15 07:53:37 STATE: test-node.js event: image +2022-04-15 07:53:38 STATE: test-node.js event: detect +2022-04-15 07:53:38 STATE: test-node.js passed: detect: samples/in/ai-body.jpg default +2022-04-15 07:53:38 DATA:  test-node.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.7,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} +2022-04-15 07:53:38 DATA:  test-node.js result: performance: load: null total: 214 +2022-04-15 07:53:38 STATE: test-node.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151289024} +2022-04-15 07:53:38 STATE: test-node.js event: image +2022-04-15 07:53:38 STATE: test-node.js event: detect +2022-04-15 07:53:38 STATE: test-node.js passed: detect: samples/in/ai-upper.jpg default +2022-04-15 07:53:38 DATA:  test-node.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"score":1,"age":23.5,"gender":"female"} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":7} +2022-04-15 07:53:38 DATA:  test-node.js result: performance: load: null total: 200 +2022-04-15 07:53:38 STATE: test-node.js passed: face descriptor +2022-04-15 07:53:38 STATE: test-node.js passed: face similarity {"similarity":[1,0.44727452329649126,0.5567935850640406],"descriptors":[1024,1024,1024]} +2022-04-15 07:53:38 INFO:  test-node.js test face matching +2022-04-15 07:53:38 STATE: test-node.js passed: face database 40 +2022-04-15 07:53:38 STATE: test-node.js passed: face match {"first":{"index":4,"similarity":0.7827852615252829}} {"second":{"index":4,"similarity":0.5002052633015844}} {"third":{"index":4,"similarity":0.5401587887998899}} +2022-04-15 07:53:38 INFO:  test-node.js test object +2022-04-15 07:53:38 STATE: test-node.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796864} +2022-04-15 07:53:38 STATE: test-node.js event: image +2022-04-15 07:53:38 STATE: test-node.js event: detect +2022-04-15 07:53:38 STATE: test-node.js passed: detect: samples/in/ai-body.jpg default +2022-04-15 07:53:38 DATA:  test-node.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.7,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} +2022-04-15 07:53:38 DATA:  test-node.js result: performance: load: null total: 214 +2022-04-15 07:53:38 STATE: test-node.js passed: object result match +2022-04-15 07:53:38 INFO:  test-node.js test sensitive +2022-04-15 07:53:38 STATE: test-node.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796864} +2022-04-15 07:53:38 STATE: test-node.js event: image +2022-04-15 07:53:39 STATE: test-node.js event: detect +2022-04-15 07:53:39 STATE: test-node.js passed: detect: samples/in/ai-body.jpg default +2022-04-15 07:53:39 DATA:  test-node.js result: face: 1 body: 1 hand: 2 gesture: 8 object: 1 person: 1 {"score":1,"age":23.7,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} +2022-04-15 07:53:39 DATA:  test-node.js result: performance: load: null total: 229 +2022-04-15 07:53:39 STATE: test-node.js passed: sensitive result match +2022-04-15 07:53:39 STATE: test-node.js passed: sensitive face result match +2022-04-15 07:53:39 STATE: test-node.js passed: sensitive face emotion result [{"score":0.59,"emotion":"angry"},{"score":0.29,"emotion":"fear"}] +2022-04-15 07:53:39 STATE: test-node.js passed: sensitive body result match +2022-04-15 07:53:39 STATE: test-node.js passed: sensitive hand result match +2022-04-15 07:53:39 INFO:  test-node.js test detectors +2022-04-15 07:53:39 STATE: test-node.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796864} +2022-04-15 07:53:39 STATE: test-node.js event: image +2022-04-15 07:53:39 STATE: test-node.js event: detect +2022-04-15 07:53:39 STATE: test-node.js passed: detect: samples/in/ai-body.jpg default +2022-04-15 07:53:39 DATA:  test-node.js result: face: 1 body: 1 hand: 1 gesture: 0 object: 1 person: 1 {"score":0.93} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} +2022-04-15 07:53:39 DATA:  test-node.js result: performance: load: null total: 168 +2022-04-15 07:53:39 STATE: test-node.js passed: detector result face match +2022-04-15 07:53:39 STATE: test-node.js passed: detector result hand match +2022-04-15 07:53:39 INFO:  test-node.js test: multi-instance +2022-04-15 07:53:39 STATE: test-node.js event: image +2022-04-15 07:53:39 STATE: test-node.js event: detect +2022-04-15 07:53:39 STATE: test-node.js passed: detect: random default +2022-04-15 07:53:39 DATA:  test-node.js result: face: 0 body: 1 hand: 0 gesture: 0 object: 0 person: 0 {} {} {"score":0.07,"keypoints":15} +2022-04-15 07:53:39 DATA:  test-node.js result: performance: load: null total: 139 +2022-04-15 07:53:39 INFO:  test-node.js test: first instance +2022-04-15 07:53:39 STATE: test-node.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151289024} +2022-04-15 07:53:39 STATE: test-node.js passed: detect: samples/in/ai-upper.jpg default +2022-04-15 07:53:39 DATA:  test-node.js result: face: 1 body: 1 hand: 0 gesture: 0 object: 1 person: 1 {"score":0.96} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":16} +2022-04-15 07:53:39 DATA:  test-node.js result: performance: load: null total: 140 +2022-04-15 07:53:39 INFO:  test-node.js test: second instance +2022-04-15 07:53:39 STATE: test-node.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151289024} +2022-04-15 07:53:40 STATE: test-node.js passed: detect: samples/in/ai-upper.jpg default +2022-04-15 07:53:40 DATA:  test-node.js result: face: 1 body: 1 hand: 0 gesture: 0 object: 1 person: 1 {"score":0.96} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":16} +2022-04-15 07:53:40 DATA:  test-node.js result: performance: load: null total: 139 +2022-04-15 07:53:40 INFO:  test-node.js test: concurrent +2022-04-15 07:53:40 STATE: test-node.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34696120} +2022-04-15 07:53:40 STATE: test-node.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34696120} +2022-04-15 07:53:40 STATE: test-node.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796864} +2022-04-15 07:53:40 STATE: test-node.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796864} +2022-04-15 07:53:40 STATE: test-node.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151289024} +2022-04-15 07:53:40 STATE: test-node.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151289024} +2022-04-15 07:53:40 STATE: test-node.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34696120} +2022-04-15 07:53:40 STATE: test-node.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796864} +2022-04-15 07:53:40 STATE: test-node.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151289024} +2022-04-15 07:53:41 STATE: test-node.js event: image +2022-04-15 07:53:41 STATE: test-node.js event: image +2022-04-15 07:53:41 STATE: test-node.js event: image +2022-04-15 07:53:42 STATE: test-node.js passed: detect: samples/in/ai-upper.jpg default +2022-04-15 07:53:42 DATA:  test-node.js result: face: 1 body: 1 hand: 0 gesture: 0 object: 1 person: 1 {"score":0.96} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":16} +2022-04-15 07:53:42 DATA:  test-node.js result: performance: load: null total: 1451 +2022-04-15 07:53:42 STATE: test-node.js passed: detect: samples/in/ai-upper.jpg default +2022-04-15 07:53:42 DATA:  test-node.js result: face: 1 body: 1 hand: 0 gesture: 0 object: 1 person: 1 {"score":0.96} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":16} +2022-04-15 07:53:42 DATA:  test-node.js result: performance: load: null total: 1451 +2022-04-15 07:53:42 STATE: test-node.js passed: detect: samples/in/ai-face.jpg default +2022-04-15 07:53:42 DATA:  test-node.js result: face: 1 body: 1 hand: 1 gesture: 2 object: 1 person: 1 {"score":0.91} {"score":0.82,"class":"person"} {"score":0.47,"keypoints":17} +2022-04-15 07:53:42 DATA:  test-node.js result: performance: load: null total: 1569 +2022-04-15 07:53:42 STATE: test-node.js passed: detect: samples/in/ai-face.jpg default +2022-04-15 07:53:42 DATA:  test-node.js result: face: 1 body: 1 hand: 1 gesture: 2 object: 1 person: 1 {"score":0.91} {"score":0.82,"class":"person"} {"score":0.47,"keypoints":17} +2022-04-15 07:53:42 DATA:  test-node.js result: performance: load: null total: 1569 +2022-04-15 07:53:42 STATE: test-node.js passed: detect: samples/in/ai-body.jpg default +2022-04-15 07:53:42 DATA:  test-node.js result: face: 1 body: 1 hand: 1 gesture: 0 object: 1 person: 1 {"score":0.93} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} +2022-04-15 07:53:42 DATA:  test-node.js result: performance: load: null total: 1569 +2022-04-15 07:53:42 STATE: test-node.js passed: detect: samples/in/ai-body.jpg default +2022-04-15 07:53:42 DATA:  test-node.js result: face: 1 body: 1 hand: 1 gesture: 0 object: 1 person: 1 {"score":0.93} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} +2022-04-15 07:53:42 DATA:  test-node.js result: performance: load: null total: 1569 +2022-04-15 07:53:42 STATE: test-node.js event: detect +2022-04-15 07:53:42 STATE: test-node.js passed: detect: samples/in/ai-upper.jpg default +2022-04-15 07:53:42 DATA:  test-node.js result: face: 1 body: 1 hand: 0 gesture: 0 object: 1 person: 1 {"score":0.96} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":16} +2022-04-15 07:53:42 DATA:  test-node.js result: performance: load: null total: 1275 +2022-04-15 07:53:42 STATE: test-node.js event: detect +2022-04-15 07:53:42 STATE: test-node.js event: detect +2022-04-15 07:53:42 STATE: test-node.js passed: detect: samples/in/ai-face.jpg default +2022-04-15 07:53:42 DATA:  test-node.js result: face: 1 body: 1 hand: 1 gesture: 2 object: 1 person: 1 {"score":0.91} {"score":0.82,"class":"person"} {"score":0.47,"keypoints":17} +2022-04-15 07:53:42 DATA:  test-node.js result: performance: load: null total: 1276 +2022-04-15 07:53:42 STATE: test-node.js passed: detect: samples/in/ai-body.jpg default +2022-04-15 07:53:42 DATA:  test-node.js result: face: 1 body: 1 hand: 1 gesture: 0 object: 1 person: 1 {"score":0.93} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} +2022-04-15 07:53:42 DATA:  test-node.js result: performance: load: null total: 1276 +2022-04-15 07:53:42 INFO:  test-node.js test: monkey-patch +2022-04-15 07:53:42 STATE: test-node.js event: image +2022-04-15 07:53:42 STATE: test-node.js event: detect +2022-04-15 07:53:42 STATE: test-node.js passed: monkey patch +2022-04-15 07:53:42 STATE: test-node.js passed: segmentation [65536] +2022-04-15 07:53:42 STATE: test-node.js passeed: equal usage +2022-04-15 07:53:42 INFO:  test-node.js test: input compare +2022-04-15 07:53:42 STATE: test-node.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34696120} +2022-04-15 07:53:42 STATE: test-node.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796864} +2022-04-15 07:53:42 STATE: test-node.js passed: image compare 0 23.275441687091504 +2022-04-15 07:53:42 INFO:  test-node.js events: {"image":21,"detect":21,"warmup":2} +2022-04-15 07:53:42 INFO:  test-node.js tensors 1925 +2022-04-15 07:53:42 INFO:  test-node.js test complete: 9252 ms +2022-04-15 07:53:42 INFO:  +2022-04-15 07:53:42 INFO:  test-node-gpu.js start +2022-04-15 07:53:43 INFO:  test-node-gpu.js test: configuration validation +2022-04-15 07:53:43 STATE: test-node-gpu.js passed: configuration default validation [] +2022-04-15 07:53:43 STATE: test-node-gpu.js passed: configuration invalid validation [{"reason":"unknown property","where":"config.invalid = true"}] +2022-04-15 07:53:43 INFO:  test-node-gpu.js test: model load +2022-04-15 07:53:43 STATE: test-node-gpu.js passed: models loaded 22 12 [{"name":"ssrnetage","loaded":false},{"name":"gear","loaded":false},{"name":"blazeposedetect","loaded":false},{"name":"blazepose","loaded":false},{"name":"centernet","loaded":true},{"name":"efficientpose","loaded":false},{"name":"mobilefacenet","loaded":false},{"name":"emotion","loaded":true},{"name":"facedetect","loaded":true},{"name":"faceiris","loaded":true},{"name":"facemesh","loaded":true},{"name":"faceres","loaded":true},{"name":"ssrnetgender","loaded":false},{"name":"handpose","loaded":false},{"name":"handskeleton","loaded":true},{"name":"handtrack","loaded":true},{"name":"liveness","loaded":true},{"name":"movenet","loaded":true},{"name":"nanodet","loaded":false},{"name":"posenet","loaded":false},{"name":"segmentation","loaded":true},{"name":"antispoof","loaded":true}] +2022-04-15 07:53:43 INFO:  test-node-gpu.js test: warmup +2022-04-15 07:53:43 STATE: test-node-gpu.js passed: create human +2022-04-15 07:53:43 INFO:  test-node-gpu.js human version: 2.7.0 +2022-04-15 07:53:43 INFO:  test-node-gpu.js platform: linux x64 agent: NodeJS v17.4.0 +2022-04-15 07:53:43 INFO:  test-node-gpu.js tfjs version: 3.15.0 +2022-04-15 07:53:43 INFO:  test-node-gpu.js tensorflow binding version: 2.7.0-dev20211101 +2022-04-15 07:53:43 STATE: test-node-gpu.js passed: set backend: tensorflow +2022-04-15 07:53:43 STATE: test-node-gpu.js tensors 1919 +2022-04-15 07:53:43 STATE: test-node-gpu.js passed: load models +2022-04-15 07:53:43 STATE: test-node-gpu.js result: defined models: 22 loaded models: 12 +2022-04-15 07:53:43 STATE: test-node-gpu.js passed: warmup: none default +2022-04-15 07:53:43 DATA:  test-node-gpu.js result: face: 0 body: 0 hand: 0 gesture: 0 object: 0 person: 0 {} {} {} +2022-04-15 07:53:43 DATA:  test-node-gpu.js result: performance: load: null total: null +2022-04-15 07:53:43 STATE: test-node-gpu.js passed: warmup none result match +2022-04-15 07:53:43 STATE: test-node-gpu.js event: image +2022-04-15 07:53:46 STATE: test-node-gpu.js event: detect +2022-04-15 07:53:46 STATE: test-node-gpu.js event: warmup +2022-04-15 07:53:46 STATE: test-node-gpu.js passed: warmup: face default +2022-04-15 07:53:46 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 1 gesture: 7 object: 1 person: 1 {"score":1,"age":23.5,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.42,"keypoints":4} +2022-04-15 07:53:46 DATA:  test-node-gpu.js result: performance: load: null total: 2826 +2022-04-15 07:53:46 STATE: test-node-gpu.js passed: warmup face result match +2022-04-15 07:53:46 STATE: test-node-gpu.js event: image +2022-04-15 07:53:46 STATE: test-node-gpu.js event: detect +2022-04-15 07:53:46 STATE: test-node-gpu.js event: warmup +2022-04-15 07:53:46 STATE: test-node-gpu.js passed: warmup: body default +2022-04-15 07:53:46 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.7,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} +2022-04-15 07:53:46 DATA:  test-node-gpu.js result: performance: load: null total: 211 +2022-04-15 07:53:46 STATE: test-node-gpu.js passed: warmup body result match +2022-04-15 07:53:46 STATE: test-node-gpu.js details: {"face":{"boxScore":0.92,"faceScore":1,"age":23.7,"gender":"female","genderScore":0.97},"emotion":[{"score":0.63,"emotion":"angry"},{"score":0.22,"emotion":"fear"}],"body":{"score":0.92,"keypoints":17},"hand":{"boxScore":0.52,"fingerScore":0.73,"keypoints":21},"gestures":[{"face":0,"gesture":"facing right"},{"hand":0,"gesture":"pinky forward"},{"hand":0,"gesture":"palm up"},{"hand":0,"gesture":"open palm"},{"iris":0,"gesture":"looking right"},{"iris":0,"gesture":"looking up"}]} +2022-04-15 07:53:46 INFO:  test-node-gpu.js test: details verification +2022-04-15 07:53:47 STATE: test-node-gpu.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796928} +2022-04-15 07:53:47 STATE: test-node-gpu.js event: image +2022-04-15 07:53:47 STATE: test-node-gpu.js event: detect +2022-04-15 07:53:47 STATE: test-node-gpu.js passed: detect: samples/in/ai-body.jpg default +2022-04-15 07:53:47 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.7,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} +2022-04-15 07:53:47 DATA:  test-node-gpu.js result: performance: load: null total: 196 +2022-04-15 07:53:47 STATE: test-node-gpu.js passed: details face length 1 +2022-04-15 07:53:47 STATE: test-node-gpu.js passed: details face score 1 0.93 1 +2022-04-15 07:53:47 STATE: test-node-gpu.js passed: details face age/gender 23.7 female 0.97 73.26 +2022-04-15 07:53:47 STATE: test-node-gpu.js passed: details face arrays 4 478 1024 +2022-04-15 07:53:47 STATE: test-node-gpu.js passed: details face emotion 2 {"score":0.59,"emotion":"angry"} +2022-04-15 07:53:47 STATE: test-node-gpu.js passed: details face anti-spoofing 0.79 +2022-04-15 07:53:47 STATE: test-node-gpu.js passed: details face liveness 0.83 +2022-04-15 07:53:47 STATE: test-node-gpu.js passed: details body length 1 +2022-04-15 07:53:47 STATE: test-node-gpu.js passed: details body 0.92 17 6 +2022-04-15 07:53:47 STATE: test-node-gpu.js passed: details hand length 1 +2022-04-15 07:53:47 STATE: test-node-gpu.js passed: details hand 0.51 0.73 point +2022-04-15 07:53:47 STATE: test-node-gpu.js passed: details hand arrays 21 5 7 +2022-04-15 07:53:47 STATE: test-node-gpu.js passed: details gesture length 6 +2022-04-15 07:53:47 STATE: test-node-gpu.js passed: details gesture first {"face":0,"gesture":"facing right"} +2022-04-15 07:53:47 STATE: test-node-gpu.js passed: details object length 1 +2022-04-15 07:53:47 STATE: test-node-gpu.js passed: details object 0.72 person +2022-04-15 07:53:47 STATE: test-node-gpu.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,4] {"checksum":1371996928} +2022-04-15 07:53:47 STATE: test-node-gpu.js event: image +2022-04-15 07:53:47 STATE: test-node-gpu.js event: detect +2022-04-15 07:53:47 STATE: test-node-gpu.js passed: tensor shape: [1,1200,1200,4] dtype: float32 +2022-04-15 07:53:48 STATE: test-node-gpu.js passed: load image: samples/in/ai-body.jpg [1200,1200,4] {"checksum":1371996928} +2022-04-15 07:53:48 STATE: test-node-gpu.js event: image +2022-04-15 07:53:48 STATE: test-node-gpu.js event: detect +2022-04-15 07:53:48 STATE: test-node-gpu.js passed: tensor shape: [1200,1200,4] dtype: float32 +2022-04-15 07:53:48 STATE: test-node-gpu.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796928} +2022-04-15 07:53:48 STATE: test-node-gpu.js event: image +2022-04-15 07:53:48 STATE: test-node-gpu.js event: detect +2022-04-15 07:53:48 STATE: test-node-gpu.js passed: tensor shape: [1,1200,1200,3] dtype: float32 +2022-04-15 07:53:49 STATE: test-node-gpu.js passed: load image: samples/in/ai-body.jpg [1200,1200,3] {"checksum":1004796928} +2022-04-15 07:53:49 STATE: test-node-gpu.js event: image +2022-04-15 07:53:49 STATE: test-node-gpu.js event: detect +2022-04-15 07:53:49 STATE: test-node-gpu.js passed: tensor shape: [1200,1200,3] dtype: float32 +2022-04-15 07:53:49 STATE: test-node-gpu.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,4] {"checksum":1371996871} +2022-04-15 07:53:49 STATE: test-node-gpu.js event: image +2022-04-15 07:53:49 STATE: test-node-gpu.js event: detect +2022-04-15 07:53:49 STATE: test-node-gpu.js passed: tensor shape: [1,1200,1200,4] dtype: int32 +2022-04-15 07:53:49 INFO:  test-node-gpu.js test default +2022-04-15 07:53:49 STATE: test-node-gpu.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796928} +2022-04-15 07:53:49 STATE: test-node-gpu.js event: image +2022-04-15 07:53:50 STATE: test-node-gpu.js event: detect +2022-04-15 07:53:50 STATE: test-node-gpu.js passed: detect: samples/in/ai-body.jpg default +2022-04-15 07:53:50 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.7,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} +2022-04-15 07:53:50 DATA:  test-node-gpu.js result: performance: load: null total: 185 +2022-04-15 07:53:50 STATE: test-node-gpu.js passed: default result face match 1 female 0.97 +2022-04-15 07:53:50 INFO:  test-node-gpu.js test sync +2022-04-15 07:53:50 STATE: test-node-gpu.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796928} +2022-04-15 07:53:50 STATE: test-node-gpu.js event: image +2022-04-15 07:53:50 STATE: test-node-gpu.js event: detect +2022-04-15 07:53:50 STATE: test-node-gpu.js passed: detect: samples/in/ai-body.jpg default +2022-04-15 07:53:50 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.7,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} +2022-04-15 07:53:50 DATA:  test-node-gpu.js result: performance: load: null total: 208 +2022-04-15 07:53:50 STATE: test-node-gpu.js passed: default sync 1 female 0.97 +2022-04-15 07:53:50 INFO:  test-node-gpu.js test: image process +2022-04-15 07:53:50 STATE: test-node-gpu.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34696120} +2022-04-15 07:53:50 STATE: test-node-gpu.js passed: image input null [1,256,256,3] +2022-04-15 07:53:50 INFO:  test-node-gpu.js test: image null +2022-04-15 07:53:50 STATE: test-node-gpu.js passed: invalid input could not convert input to tensor +2022-04-15 07:53:50 INFO:  test-node-gpu.js test face similarity +2022-04-15 07:53:50 STATE: test-node-gpu.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34696120} +2022-04-15 07:53:50 STATE: test-node-gpu.js event: image +2022-04-15 07:53:50 STATE: test-node-gpu.js event: detect +2022-04-15 07:53:50 STATE: test-node-gpu.js passed: detect: samples/in/ai-face.jpg default +2022-04-15 07:53:50 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.5,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.47,"keypoints":3} +2022-04-15 07:53:50 DATA:  test-node-gpu.js result: performance: load: null total: 208 +2022-04-15 07:53:50 STATE: test-node-gpu.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796928} +2022-04-15 07:53:50 STATE: test-node-gpu.js event: image +2022-04-15 07:53:51 STATE: test-node-gpu.js event: detect +2022-04-15 07:53:51 STATE: test-node-gpu.js passed: detect: samples/in/ai-body.jpg default +2022-04-15 07:53:51 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.7,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} +2022-04-15 07:53:51 DATA:  test-node-gpu.js result: performance: load: null total: 166 +2022-04-15 07:53:51 STATE: test-node-gpu.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151289056} +2022-04-15 07:53:51 STATE: test-node-gpu.js event: image +2022-04-15 07:53:51 STATE: test-node-gpu.js event: detect +2022-04-15 07:53:51 STATE: test-node-gpu.js passed: detect: samples/in/ai-upper.jpg default +2022-04-15 07:53:51 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"score":1,"age":23.5,"gender":"female"} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":7} +2022-04-15 07:53:51 DATA:  test-node-gpu.js result: performance: load: null total: 172 +2022-04-15 07:53:51 STATE: test-node-gpu.js passed: face descriptor +2022-04-15 07:53:51 STATE: test-node-gpu.js passed: face similarity {"similarity":[1,0.447238756461232,0.556914029877052],"descriptors":[1024,1024,1024]} +2022-04-15 07:53:51 INFO:  test-node-gpu.js test face matching +2022-04-15 07:53:51 STATE: test-node-gpu.js passed: face database 40 +2022-04-15 07:53:51 STATE: test-node-gpu.js passed: face match {"first":{"index":4,"similarity":0.7828184453007331}} {"second":{"index":4,"similarity":0.5001334216773398}} {"third":{"index":4,"similarity":0.5403054967489764}} +2022-04-15 07:53:51 INFO:  test-node-gpu.js test object +2022-04-15 07:53:51 STATE: test-node-gpu.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796928} +2022-04-15 07:53:51 STATE: test-node-gpu.js event: image +2022-04-15 07:53:51 STATE: test-node-gpu.js event: detect +2022-04-15 07:53:51 STATE: test-node-gpu.js passed: detect: samples/in/ai-body.jpg default +2022-04-15 07:53:51 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.7,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} +2022-04-15 07:53:51 DATA:  test-node-gpu.js result: performance: load: null total: 178 +2022-04-15 07:53:51 STATE: test-node-gpu.js passed: object result match +2022-04-15 07:53:51 INFO:  test-node-gpu.js test sensitive +2022-04-15 07:53:51 STATE: test-node-gpu.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796928} +2022-04-15 07:53:51 STATE: test-node-gpu.js event: image +2022-04-15 07:53:52 STATE: test-node-gpu.js event: detect +2022-04-15 07:53:52 STATE: test-node-gpu.js passed: detect: samples/in/ai-body.jpg default +2022-04-15 07:53:52 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 2 gesture: 8 object: 1 person: 1 {"score":1,"age":23.7,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} +2022-04-15 07:53:52 DATA:  test-node-gpu.js result: performance: load: null total: 194 +2022-04-15 07:53:52 STATE: test-node-gpu.js passed: sensitive result match +2022-04-15 07:53:52 STATE: test-node-gpu.js passed: sensitive face result match +2022-04-15 07:53:52 STATE: test-node-gpu.js passed: sensitive face emotion result [{"score":0.59,"emotion":"angry"},{"score":0.29,"emotion":"fear"}] +2022-04-15 07:53:52 STATE: test-node-gpu.js passed: sensitive body result match +2022-04-15 07:53:52 STATE: test-node-gpu.js passed: sensitive hand result match +2022-04-15 07:53:52 INFO:  test-node-gpu.js test detectors +2022-04-15 07:53:52 STATE: test-node-gpu.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796928} +2022-04-15 07:53:52 STATE: test-node-gpu.js event: image +2022-04-15 07:53:52 STATE: test-node-gpu.js event: detect +2022-04-15 07:53:52 STATE: test-node-gpu.js passed: detect: samples/in/ai-body.jpg default +2022-04-15 07:53:52 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 1 gesture: 0 object: 1 person: 1 {"score":0.93} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} +2022-04-15 07:53:52 DATA:  test-node-gpu.js result: performance: load: null total: 91 +2022-04-15 07:53:52 STATE: test-node-gpu.js passed: detector result face match +2022-04-15 07:53:52 STATE: test-node-gpu.js passed: detector result hand match +2022-04-15 07:53:52 INFO:  test-node-gpu.js test: multi-instance +2022-04-15 07:53:52 STATE: test-node-gpu.js event: image +2022-04-15 07:53:52 STATE: test-node-gpu.js event: detect +2022-04-15 07:53:52 STATE: test-node-gpu.js passed: detect: random default +2022-04-15 07:53:52 DATA:  test-node-gpu.js result: face: 0 body: 1 hand: 0 gesture: 0 object: 0 person: 0 {} {} {"score":0.07,"keypoints":15} +2022-04-15 07:53:52 DATA:  test-node-gpu.js result: performance: load: null total: 89 +2022-04-15 07:53:52 INFO:  test-node-gpu.js test: first instance +2022-04-15 07:53:52 STATE: test-node-gpu.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151289056} +2022-04-15 07:53:52 STATE: test-node-gpu.js passed: detect: samples/in/ai-upper.jpg default +2022-04-15 07:53:52 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 0 object: 1 person: 1 {"score":0.96} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":16} +2022-04-15 07:53:52 DATA:  test-node-gpu.js result: performance: load: null total: 118 +2022-04-15 07:53:52 INFO:  test-node-gpu.js test: second instance +2022-04-15 07:53:52 STATE: test-node-gpu.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151289056} +2022-04-15 07:53:52 STATE: test-node-gpu.js passed: detect: samples/in/ai-upper.jpg default +2022-04-15 07:53:52 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 0 object: 1 person: 1 {"score":0.96} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":16} +2022-04-15 07:53:52 DATA:  test-node-gpu.js result: performance: load: null total: 121 +2022-04-15 07:53:52 INFO:  test-node-gpu.js test: concurrent +2022-04-15 07:53:52 STATE: test-node-gpu.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34696120} +2022-04-15 07:53:52 STATE: test-node-gpu.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34696120} +2022-04-15 07:53:53 STATE: test-node-gpu.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796928} +2022-04-15 07:53:53 STATE: test-node-gpu.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796928} +2022-04-15 07:53:53 STATE: test-node-gpu.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151289056} +2022-04-15 07:53:53 STATE: test-node-gpu.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151289056} +2022-04-15 07:53:53 STATE: test-node-gpu.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34696120} +2022-04-15 07:53:53 STATE: test-node-gpu.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796928} +2022-04-15 07:53:53 STATE: test-node-gpu.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151289056} +2022-04-15 07:53:53 STATE: test-node-gpu.js event: image +2022-04-15 07:53:53 STATE: test-node-gpu.js event: image +2022-04-15 07:53:53 STATE: test-node-gpu.js event: image +2022-04-15 07:53:54 STATE: test-node-gpu.js passed: detect: samples/in/ai-upper.jpg default +2022-04-15 07:53:54 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 0 object: 1 person: 1 {"score":0.96} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":16} +2022-04-15 07:53:54 DATA:  test-node-gpu.js result: performance: load: null total: 1039 +2022-04-15 07:53:54 STATE: test-node-gpu.js passed: detect: samples/in/ai-upper.jpg default +2022-04-15 07:53:54 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 0 object: 1 person: 1 {"score":0.96} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":16} +2022-04-15 07:53:54 DATA:  test-node-gpu.js result: performance: load: null total: 1039 +2022-04-15 07:53:54 STATE: test-node-gpu.js passed: detect: samples/in/ai-face.jpg default +2022-04-15 07:53:54 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 1 gesture: 2 object: 1 person: 1 {"score":0.91} {"score":0.82,"class":"person"} {"score":0.47,"keypoints":17} +2022-04-15 07:53:54 DATA:  test-node-gpu.js result: performance: load: null total: 1107 +2022-04-15 07:53:54 STATE: test-node-gpu.js passed: detect: samples/in/ai-face.jpg default +2022-04-15 07:53:54 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 1 gesture: 2 object: 1 person: 1 {"score":0.91} {"score":0.82,"class":"person"} {"score":0.47,"keypoints":17} +2022-04-15 07:53:54 DATA:  test-node-gpu.js result: performance: load: null total: 1107 +2022-04-15 07:53:54 STATE: test-node-gpu.js passed: detect: samples/in/ai-body.jpg default +2022-04-15 07:53:54 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 1 gesture: 0 object: 1 person: 1 {"score":0.93} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} +2022-04-15 07:53:54 DATA:  test-node-gpu.js result: performance: load: null total: 1107 +2022-04-15 07:53:54 STATE: test-node-gpu.js passed: detect: samples/in/ai-body.jpg default +2022-04-15 07:53:54 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 1 gesture: 0 object: 1 person: 1 {"score":0.93} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} +2022-04-15 07:53:54 DATA:  test-node-gpu.js result: performance: load: null total: 1107 +2022-04-15 07:53:54 STATE: test-node-gpu.js event: detect +2022-04-15 07:53:54 STATE: test-node-gpu.js passed: detect: samples/in/ai-upper.jpg default +2022-04-15 07:53:54 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 0 gesture: 0 object: 1 person: 1 {"score":0.96} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":16} +2022-04-15 07:53:54 DATA:  test-node-gpu.js result: performance: load: null total: 853 +2022-04-15 07:53:54 STATE: test-node-gpu.js event: detect +2022-04-15 07:53:54 STATE: test-node-gpu.js event: detect +2022-04-15 07:53:54 STATE: test-node-gpu.js passed: detect: samples/in/ai-face.jpg default +2022-04-15 07:53:54 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 1 gesture: 2 object: 1 person: 1 {"score":0.91} {"score":0.82,"class":"person"} {"score":0.47,"keypoints":17} +2022-04-15 07:53:54 DATA:  test-node-gpu.js result: performance: load: null total: 853 +2022-04-15 07:53:54 STATE: test-node-gpu.js passed: detect: samples/in/ai-body.jpg default +2022-04-15 07:53:54 DATA:  test-node-gpu.js result: face: 1 body: 1 hand: 1 gesture: 0 object: 1 person: 1 {"score":0.93} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} +2022-04-15 07:53:54 DATA:  test-node-gpu.js result: performance: load: null total: 853 +2022-04-15 07:53:54 INFO:  test-node-gpu.js test: monkey-patch +2022-04-15 07:53:54 STATE: test-node-gpu.js event: image +2022-04-15 07:53:54 STATE: test-node-gpu.js event: detect +2022-04-15 07:53:54 STATE: test-node-gpu.js passed: monkey patch +2022-04-15 07:53:55 STATE: test-node-gpu.js passed: segmentation [65536] +2022-04-15 07:53:55 STATE: test-node-gpu.js passeed: equal usage +2022-04-15 07:53:55 INFO:  test-node-gpu.js test: input compare +2022-04-15 07:53:55 STATE: test-node-gpu.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34696120} +2022-04-15 07:53:55 STATE: test-node-gpu.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1004796928} +2022-04-15 07:53:55 STATE: test-node-gpu.js passed: image compare 0 23.275441687091504 +2022-04-15 07:53:55 INFO:  test-node-gpu.js events: {"image":21,"detect":21,"warmup":2} +2022-04-15 07:53:55 INFO:  test-node-gpu.js tensors 1925 +2022-04-15 07:53:55 INFO:  test-node-gpu.js test complete: 11827 ms +2022-04-15 07:53:55 INFO:  +2022-04-15 07:53:55 INFO:  test-node-wasm.js start +2022-04-15 07:53:56 STATE: test-node-wasm.js passed: model server: https://vladmandic.github.io/human/models/ +2022-04-15 07:53:56 INFO:  test-node-wasm.js test: configuration validation +2022-04-15 07:53:56 STATE: test-node-wasm.js passed: configuration default validation [] +2022-04-15 07:53:56 STATE: test-node-wasm.js passed: configuration invalid validation [{"reason":"unknown property","where":"config.invalid = true"}] +2022-04-15 07:53:56 INFO:  test-node-wasm.js test: model load +2022-04-15 07:53:57 STATE: test-node-wasm.js passed: models loaded 22 12 [{"name":"ssrnetage","loaded":false},{"name":"gear","loaded":false},{"name":"blazeposedetect","loaded":false},{"name":"blazepose","loaded":false},{"name":"centernet","loaded":true},{"name":"efficientpose","loaded":false},{"name":"mobilefacenet","loaded":false},{"name":"emotion","loaded":true},{"name":"facedetect","loaded":true},{"name":"faceiris","loaded":true},{"name":"facemesh","loaded":true},{"name":"faceres","loaded":true},{"name":"ssrnetgender","loaded":false},{"name":"handpose","loaded":false},{"name":"handskeleton","loaded":true},{"name":"handtrack","loaded":true},{"name":"liveness","loaded":true},{"name":"movenet","loaded":true},{"name":"nanodet","loaded":false},{"name":"posenet","loaded":false},{"name":"segmentation","loaded":true},{"name":"antispoof","loaded":true}] +2022-04-15 07:53:57 INFO:  test-node-wasm.js test: warmup +2022-04-15 07:53:57 STATE: test-node-wasm.js passed: create human +2022-04-15 07:53:57 INFO:  test-node-wasm.js human version: 2.7.0 +2022-04-15 07:53:57 INFO:  test-node-wasm.js platform: linux x64 agent: NodeJS v17.4.0 +2022-04-15 07:53:57 INFO:  test-node-wasm.js tfjs version: 3.15.0 +2022-04-15 07:53:57 STATE: test-node-wasm.js passed: set backend: wasm +2022-04-15 07:53:57 STATE: test-node-wasm.js tensors 1919 +2022-04-15 07:53:57 STATE: test-node-wasm.js passed: load models +2022-04-15 07:53:57 STATE: test-node-wasm.js result: defined models: 22 loaded models: 12 +2022-04-15 07:53:57 STATE: test-node-wasm.js passed: warmup: none default +2022-04-15 07:53:57 DATA:  test-node-wasm.js result: face: 0 body: 0 hand: 0 gesture: 0 object: 0 person: 0 {} {} {} +2022-04-15 07:53:57 DATA:  test-node-wasm.js result: performance: load: null total: null +2022-04-15 07:53:57 STATE: test-node-wasm.js passed: warmup none result match +2022-04-15 07:53:57 STATE: test-node-wasm.js event: image +2022-04-15 07:53:58 STATE: test-node-wasm.js event: detect +2022-04-15 07:53:58 STATE: test-node-wasm.js event: warmup +2022-04-15 07:53:58 STATE: test-node-wasm.js passed: warmup: face default +2022-04-15 07:53:58 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.5,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.47,"keypoints":3} +2022-04-15 07:53:58 DATA:  test-node-wasm.js result: performance: load: null total: 546 +2022-04-15 07:53:58 STATE: test-node-wasm.js passed: warmup face result match +2022-04-15 07:53:58 STATE: test-node-wasm.js event: image +2022-04-15 07:53:58 STATE: test-node-wasm.js event: detect +2022-04-15 07:53:58 STATE: test-node-wasm.js event: warmup +2022-04-15 07:53:58 STATE: test-node-wasm.js passed: warmup: body default +2022-04-15 07:53:58 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.7,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} +2022-04-15 07:53:58 DATA:  test-node-wasm.js result: performance: load: null total: 375 +2022-04-15 07:53:58 STATE: test-node-wasm.js passed: warmup body result match +2022-04-15 07:53:58 STATE: test-node-wasm.js details: {"face":{"boxScore":0.93,"faceScore":1,"age":23.7,"gender":"female","genderScore":0.97},"emotion":[{"score":0.59,"emotion":"angry"},{"score":0.29,"emotion":"fear"}],"body":{"score":0.92,"keypoints":17},"hand":{"boxScore":0.51,"fingerScore":0.73,"keypoints":21},"gestures":[{"face":0,"gesture":"facing right"},{"hand":0,"gesture":"pinky forward"},{"hand":0,"gesture":"palm up"},{"hand":0,"gesture":"open palm"},{"iris":0,"gesture":"looking left"},{"iris":0,"gesture":"looking up"}]} +2022-04-15 07:53:58 INFO:  test-node-wasm.js test: details verification +2022-04-15 07:53:58 STATE: test-node-wasm.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1038921856} +2022-04-15 07:53:58 STATE: test-node-wasm.js event: image +2022-04-15 07:53:59 STATE: test-node-wasm.js event: detect +2022-04-15 07:53:59 STATE: test-node-wasm.js passed: detect: samples/in/ai-body.jpg default +2022-04-15 07:53:59 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.7,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} +2022-04-15 07:53:59 DATA:  test-node-wasm.js result: performance: load: null total: 369 +2022-04-15 07:53:59 STATE: test-node-wasm.js passed: details face length 1 +2022-04-15 07:53:59 STATE: test-node-wasm.js passed: details face score 1 0.93 1 +2022-04-15 07:53:59 STATE: test-node-wasm.js passed: details face age/gender 23.7 female 0.97 73.26 +2022-04-15 07:53:59 STATE: test-node-wasm.js passed: details face arrays 4 478 1024 +2022-04-15 07:53:59 STATE: test-node-wasm.js passed: details face emotion 2 {"score":0.59,"emotion":"angry"} +2022-04-15 07:53:59 STATE: test-node-wasm.js passed: details face anti-spoofing 0.79 +2022-04-15 07:53:59 STATE: test-node-wasm.js passed: details face liveness 0.83 +2022-04-15 07:53:59 STATE: test-node-wasm.js passed: details body length 1 +2022-04-15 07:53:59 STATE: test-node-wasm.js passed: details body 0.92 17 6 +2022-04-15 07:53:59 STATE: test-node-wasm.js passed: details hand length 1 +2022-04-15 07:53:59 STATE: test-node-wasm.js passed: details hand 0.51 0.73 point +2022-04-15 07:53:59 STATE: test-node-wasm.js passed: details hand arrays 21 5 7 +2022-04-15 07:53:59 STATE: test-node-wasm.js passed: details gesture length 6 +2022-04-15 07:53:59 STATE: test-node-wasm.js passed: details gesture first {"face":0,"gesture":"facing right"} +2022-04-15 07:53:59 STATE: test-node-wasm.js passed: details object length 1 +2022-04-15 07:53:59 STATE: test-node-wasm.js passed: details object 0.72 person +2022-04-15 07:53:59 STATE: test-node-wasm.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,4] {"checksum":1413675264} +2022-04-15 07:53:59 STATE: test-node-wasm.js event: image +2022-04-15 07:53:59 STATE: test-node-wasm.js event: detect +2022-04-15 07:53:59 STATE: test-node-wasm.js passed: tensor shape: [1,1200,1200,4] dtype: float32 +2022-04-15 07:54:00 STATE: test-node-wasm.js passed: load image: samples/in/ai-body.jpg [1200,1200,4] {"checksum":1413675264} +2022-04-15 07:54:00 STATE: test-node-wasm.js event: image +2022-04-15 07:54:00 STATE: test-node-wasm.js event: detect +2022-04-15 07:54:00 STATE: test-node-wasm.js passed: tensor shape: [1200,1200,4] dtype: float32 +2022-04-15 07:54:00 STATE: test-node-wasm.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1038921856} +2022-04-15 07:54:00 STATE: test-node-wasm.js event: image +2022-04-15 07:54:01 STATE: test-node-wasm.js event: detect +2022-04-15 07:54:01 STATE: test-node-wasm.js passed: tensor shape: [1,1200,1200,3] dtype: float32 +2022-04-15 07:54:01 STATE: test-node-wasm.js passed: load image: samples/in/ai-body.jpg [1200,1200,3] {"checksum":1038921856} +2022-04-15 07:54:01 STATE: test-node-wasm.js event: image +2022-04-15 07:54:01 STATE: test-node-wasm.js event: detect +2022-04-15 07:54:01 STATE: test-node-wasm.js passed: tensor shape: [1200,1200,3] dtype: float32 +2022-04-15 07:54:01 STATE: test-node-wasm.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,4] {"checksum":1371996871} +2022-04-15 07:54:02 STATE: test-node-wasm.js event: image +2022-04-15 07:54:02 STATE: test-node-wasm.js event: detect +2022-04-15 07:54:02 STATE: test-node-wasm.js passed: tensor shape: [1,1200,1200,4] dtype: int32 +2022-04-15 07:54:02 INFO:  test-node-wasm.js test default +2022-04-15 07:54:02 STATE: test-node-wasm.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1038921856} +2022-04-15 07:54:02 STATE: test-node-wasm.js event: image +2022-04-15 07:54:02 STATE: test-node-wasm.js event: detect +2022-04-15 07:54:02 STATE: test-node-wasm.js passed: detect: samples/in/ai-body.jpg default +2022-04-15 07:54:02 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":29.6,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} +2022-04-15 07:54:02 DATA:  test-node-wasm.js result: performance: load: null total: 343 +2022-04-15 07:54:02 STATE: test-node-wasm.js passed: default result face match 1 female 0.97 +2022-04-15 07:54:02 INFO:  test-node-wasm.js test sync +2022-04-15 07:54:03 STATE: test-node-wasm.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1038921856} +2022-04-15 07:54:03 STATE: test-node-wasm.js event: image +2022-04-15 07:54:03 STATE: test-node-wasm.js event: detect +2022-04-15 07:54:03 STATE: test-node-wasm.js passed: detect: samples/in/ai-body.jpg default +2022-04-15 07:54:03 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":29.6,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} +2022-04-15 07:54:03 DATA:  test-node-wasm.js result: performance: load: null total: 378 +2022-04-15 07:54:03 STATE: test-node-wasm.js passed: default sync 1 female 0.97 +2022-04-15 07:54:03 INFO:  test-node-wasm.js test: image process +2022-04-15 07:54:03 STATE: test-node-wasm.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34697856} +2022-04-15 07:54:03 STATE: test-node-wasm.js passed: image input null [1,256,256,3] +2022-04-15 07:54:03 INFO:  test-node-wasm.js test: image null +2022-04-15 07:54:03 STATE: test-node-wasm.js passed: invalid input could not convert input to tensor +2022-04-15 07:54:03 INFO:  test-node-wasm.js test face similarity +2022-04-15 07:54:03 STATE: test-node-wasm.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34697856} +2022-04-15 07:54:03 STATE: test-node-wasm.js event: image +2022-04-15 07:54:03 STATE: test-node-wasm.js event: detect +2022-04-15 07:54:03 STATE: test-node-wasm.js passed: detect: samples/in/ai-face.jpg default +2022-04-15 07:54:03 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":23.5,"gender":"female"} {"score":0.82,"class":"person"} {"score":0.47,"keypoints":3} +2022-04-15 07:54:03 DATA:  test-node-wasm.js result: performance: load: null total: 345 +2022-04-15 07:54:04 STATE: test-node-wasm.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1038921856} +2022-04-15 07:54:04 STATE: test-node-wasm.js event: image +2022-04-15 07:54:04 STATE: test-node-wasm.js event: detect +2022-04-15 07:54:04 STATE: test-node-wasm.js passed: detect: samples/in/ai-body.jpg default +2022-04-15 07:54:04 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":29.6,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} +2022-04-15 07:54:04 DATA:  test-node-wasm.js result: performance: load: null total: 370 +2022-04-15 07:54:04 STATE: test-node-wasm.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151155104} +2022-04-15 07:54:04 STATE: test-node-wasm.js event: image +2022-04-15 07:54:04 STATE: test-node-wasm.js event: detect +2022-04-15 07:54:04 STATE: test-node-wasm.js passed: detect: samples/in/ai-upper.jpg default +2022-04-15 07:54:04 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 0 gesture: 3 object: 1 person: 1 {"score":1,"age":23.5,"gender":"female"} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":7} +2022-04-15 07:54:04 DATA:  test-node-wasm.js result: performance: load: null total: 314 +2022-04-15 07:54:04 STATE: test-node-wasm.js passed: face descriptor +2022-04-15 07:54:04 STATE: test-node-wasm.js passed: face similarity {"similarity":[1,0.5266119940661309,0.4858842904087851],"descriptors":[1024,1024,1024]} +2022-04-15 07:54:04 INFO:  test-node-wasm.js test face matching +2022-04-15 07:54:04 STATE: test-node-wasm.js passed: face database 40 +2022-04-15 07:54:04 STATE: test-node-wasm.js passed: face match {"first":{"index":4,"similarity":0.7827852754786533}} {"second":{"index":4,"similarity":0.5660821189104794}} {"third":{"index":4,"similarity":0.45074189882665594}} +2022-04-15 07:54:04 INFO:  test-node-wasm.js test object +2022-04-15 07:54:05 STATE: test-node-wasm.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1038921856} +2022-04-15 07:54:05 STATE: test-node-wasm.js event: image +2022-04-15 07:54:05 STATE: test-node-wasm.js event: detect +2022-04-15 07:54:05 STATE: test-node-wasm.js passed: detect: samples/in/ai-body.jpg default +2022-04-15 07:54:05 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 1 gesture: 6 object: 1 person: 1 {"score":1,"age":29.6,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} +2022-04-15 07:54:05 DATA:  test-node-wasm.js result: performance: load: null total: 373 +2022-04-15 07:54:05 STATE: test-node-wasm.js passed: object result match +2022-04-15 07:54:05 INFO:  test-node-wasm.js test sensitive +2022-04-15 07:54:05 STATE: test-node-wasm.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1038921856} +2022-04-15 07:54:05 STATE: test-node-wasm.js event: image +2022-04-15 07:54:06 STATE: test-node-wasm.js event: detect +2022-04-15 07:54:06 STATE: test-node-wasm.js passed: detect: samples/in/ai-body.jpg default +2022-04-15 07:54:06 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 2 gesture: 8 object: 1 person: 1 {"score":1,"age":29.6,"gender":"female"} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} +2022-04-15 07:54:06 DATA:  test-node-wasm.js result: performance: load: null total: 379 +2022-04-15 07:54:06 STATE: test-node-wasm.js passed: sensitive result match +2022-04-15 07:54:06 STATE: test-node-wasm.js passed: sensitive face result match +2022-04-15 07:54:06 STATE: test-node-wasm.js passed: sensitive face emotion result [{"score":0.46,"emotion":"neutral"},{"score":0.24,"emotion":"fear"},{"score":0.17,"emotion":"sad"}] +2022-04-15 07:54:06 STATE: test-node-wasm.js passed: sensitive body result match +2022-04-15 07:54:06 STATE: test-node-wasm.js passed: sensitive hand result match +2022-04-15 07:54:06 INFO:  test-node-wasm.js test detectors +2022-04-15 07:54:06 STATE: test-node-wasm.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1038921856} +2022-04-15 07:54:06 STATE: test-node-wasm.js event: image +2022-04-15 07:54:06 STATE: test-node-wasm.js event: detect +2022-04-15 07:54:06 STATE: test-node-wasm.js passed: detect: samples/in/ai-body.jpg default +2022-04-15 07:54:06 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 1 gesture: 0 object: 1 person: 1 {"score":0.93} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} +2022-04-15 07:54:06 DATA:  test-node-wasm.js result: performance: load: null total: 257 +2022-04-15 07:54:06 STATE: test-node-wasm.js passed: detector result face match +2022-04-15 07:54:06 STATE: test-node-wasm.js passed: detector result hand match +2022-04-15 07:54:06 INFO:  test-node-wasm.js test: multi-instance +2022-04-15 07:54:06 STATE: test-node-wasm.js event: image +2022-04-15 07:54:06 STATE: test-node-wasm.js event: detect +2022-04-15 07:54:06 STATE: test-node-wasm.js passed: detect: random default +2022-04-15 07:54:06 DATA:  test-node-wasm.js result: face: 0 body: 1 hand: 0 gesture: 0 object: 0 person: 0 {} {} {"score":0.08,"keypoints":15} +2022-04-15 07:54:06 DATA:  test-node-wasm.js result: performance: load: null total: 229 +2022-04-15 07:54:06 INFO:  test-node-wasm.js test: first instance +2022-04-15 07:54:07 STATE: test-node-wasm.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151155104} +2022-04-15 07:54:07 STATE: test-node-wasm.js passed: detect: samples/in/ai-upper.jpg default +2022-04-15 07:54:07 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 0 gesture: 0 object: 1 person: 1 {"score":0.96} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":16} +2022-04-15 07:54:07 DATA:  test-node-wasm.js result: performance: load: null total: 222 +2022-04-15 07:54:07 INFO:  test-node-wasm.js test: second instance +2022-04-15 07:54:07 STATE: test-node-wasm.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151155104} +2022-04-15 07:54:07 STATE: test-node-wasm.js passed: detect: samples/in/ai-upper.jpg default +2022-04-15 07:54:07 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 0 gesture: 0 object: 1 person: 1 {"score":0.96} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":16} +2022-04-15 07:54:07 DATA:  test-node-wasm.js result: performance: load: null total: 228 +2022-04-15 07:54:07 INFO:  test-node-wasm.js test: concurrent +2022-04-15 07:54:07 STATE: test-node-wasm.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34697856} +2022-04-15 07:54:07 STATE: test-node-wasm.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34697856} +2022-04-15 07:54:07 STATE: test-node-wasm.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1038921856} +2022-04-15 07:54:08 STATE: test-node-wasm.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1038921856} +2022-04-15 07:54:08 STATE: test-node-wasm.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151155104} +2022-04-15 07:54:08 STATE: test-node-wasm.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151155104} +2022-04-15 07:54:08 STATE: test-node-wasm.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34697856} +2022-04-15 07:54:08 STATE: test-node-wasm.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1038921856} +2022-04-15 07:54:08 STATE: test-node-wasm.js passed: load image: samples/in/ai-upper.jpg [1,720,688,3] {"checksum":151155104} +2022-04-15 07:54:08 STATE: test-node-wasm.js event: image +2022-04-15 07:54:08 STATE: test-node-wasm.js event: image +2022-04-15 07:54:08 STATE: test-node-wasm.js event: image +2022-04-15 07:54:10 STATE: test-node-wasm.js passed: detect: samples/in/ai-upper.jpg default +2022-04-15 07:54:10 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 0 gesture: 0 object: 1 person: 1 {"score":0.96} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":16} +2022-04-15 07:54:10 DATA:  test-node-wasm.js result: performance: load: null total: 2003 +2022-04-15 07:54:10 STATE: test-node-wasm.js passed: detect: samples/in/ai-upper.jpg default +2022-04-15 07:54:10 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 0 gesture: 0 object: 1 person: 1 {"score":0.96} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":16} +2022-04-15 07:54:10 DATA:  test-node-wasm.js result: performance: load: null total: 2003 +2022-04-15 07:54:10 STATE: test-node-wasm.js passed: detect: samples/in/ai-face.jpg default +2022-04-15 07:54:10 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 1 gesture: 2 object: 1 person: 1 {"score":0.91} {"score":0.82,"class":"person"} {"score":0.47,"keypoints":17} +2022-04-15 07:54:10 DATA:  test-node-wasm.js result: performance: load: null total: 2230 +2022-04-15 07:54:10 STATE: test-node-wasm.js passed: detect: samples/in/ai-face.jpg default +2022-04-15 07:54:10 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 1 gesture: 2 object: 1 person: 1 {"score":0.91} {"score":0.82,"class":"person"} {"score":0.47,"keypoints":17} +2022-04-15 07:54:10 DATA:  test-node-wasm.js result: performance: load: null total: 2230 +2022-04-15 07:54:10 STATE: test-node-wasm.js passed: detect: samples/in/ai-body.jpg default +2022-04-15 07:54:10 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 1 gesture: 0 object: 1 person: 1 {"score":0.93} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} +2022-04-15 07:54:10 DATA:  test-node-wasm.js result: performance: load: null total: 2230 +2022-04-15 07:54:10 STATE: test-node-wasm.js passed: detect: samples/in/ai-body.jpg default +2022-04-15 07:54:10 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 1 gesture: 0 object: 1 person: 1 {"score":0.93} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} +2022-04-15 07:54:10 DATA:  test-node-wasm.js result: performance: load: null total: 2230 +2022-04-15 07:54:10 STATE: test-node-wasm.js event: detect +2022-04-15 07:54:10 STATE: test-node-wasm.js passed: detect: samples/in/ai-upper.jpg default +2022-04-15 07:54:10 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 0 gesture: 0 object: 1 person: 1 {"score":0.96} {"score":0.71,"class":"person"} {"score":0.75,"keypoints":16} +2022-04-15 07:54:10 DATA:  test-node-wasm.js result: performance: load: null total: 1907 +2022-04-15 07:54:10 STATE: test-node-wasm.js event: detect +2022-04-15 07:54:10 STATE: test-node-wasm.js event: detect +2022-04-15 07:54:10 STATE: test-node-wasm.js passed: detect: samples/in/ai-face.jpg default +2022-04-15 07:54:10 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 1 gesture: 2 object: 1 person: 1 {"score":0.91} {"score":0.82,"class":"person"} {"score":0.47,"keypoints":17} +2022-04-15 07:54:10 DATA:  test-node-wasm.js result: performance: load: null total: 1907 +2022-04-15 07:54:10 STATE: test-node-wasm.js passed: detect: samples/in/ai-body.jpg default +2022-04-15 07:54:10 DATA:  test-node-wasm.js result: face: 1 body: 1 hand: 1 gesture: 0 object: 1 person: 1 {"score":0.93} {"score":0.72,"class":"person"} {"score":0.92,"keypoints":17} +2022-04-15 07:54:10 DATA:  test-node-wasm.js result: performance: load: null total: 1907 +2022-04-15 07:54:10 INFO:  test-node-wasm.js test: monkey-patch +2022-04-15 07:54:10 STATE: test-node-wasm.js event: image +2022-04-15 07:54:10 STATE: test-node-wasm.js event: detect +2022-04-15 07:54:10 STATE: test-node-wasm.js passed: monkey patch +2022-04-15 07:54:10 STATE: test-node-wasm.js passed: segmentation [65536] +2022-04-15 07:54:10 STATE: test-node-wasm.js passeed: equal usage +2022-04-15 07:54:10 INFO:  test-node-wasm.js test: input compare +2022-04-15 07:54:10 STATE: test-node-wasm.js passed: load image: samples/in/ai-face.jpg [1,256,256,3] {"checksum":34697856} +2022-04-15 07:54:10 STATE: test-node-wasm.js passed: load image: samples/in/ai-body.jpg [1,1200,1200,3] {"checksum":1038921856} +2022-04-15 07:54:10 STATE: test-node-wasm.js passed: image compare 0 23.280073018790848 +2022-04-15 07:54:10 INFO:  test-node-wasm.js events: {"image":21,"detect":21,"warmup":2} +2022-04-15 07:54:10 INFO:  test-node-wasm.js tensors 1927 +2022-04-15 07:54:10 INFO:  test-node-wasm.js test complete: 14543 ms +2022-04-15 07:54:11 INFO:  all tests complete +2022-04-15 07:54:11 INFO:  failed: {"count":0,"messages":[]} +2022-04-15 07:54:11 INFO:  status: {"test":"test-node.js","passed":101,"failed":0} +2022-04-15 07:54:11 INFO:  status: {"test":"test-node-gpu.js","passed":101,"failed":0} +2022-04-15 07:54:11 INFO:  status: {"test":"test-node-wasm.js","passed":102,"failed":0} diff --git a/tfjs/tf-version.ts b/tfjs/tf-version.ts index aaabb80a..ca5d0023 100644 --- a/tfjs/tf-version.ts +++ b/tfjs/tf-version.ts @@ -4,7 +4,7 @@ import { version as tfjsCoreVersion } from '@tensorflow/tfjs-core/package.json'; import { version as tfjsDataVersion } from '@tensorflow/tfjs-data/package.json'; import { version as tfjsLayersVersion } from '@tensorflow/tfjs-layers/package.json'; import { version as tfjsConverterVersion } from '@tensorflow/tfjs-converter/package.json'; -import { version as tfjsBackendCPUVersion } from '@tensorflow/tfjs-backend-cpu/package.json'; +// import { version as tfjsBackendCPUVersion } from '@tensorflow/tfjs-backend-cpu/package.json'; import { version as tfjsBackendWebGLVersion } from '@tensorflow/tfjs-backend-webgl/package.json'; import { version as tfjsBackendWASMVersion } from '@tensorflow/tfjs-backend-wasm/package.json'; @@ -14,7 +14,7 @@ export const version = { 'tfjs-data': tfjsDataVersion, 'tfjs-layers': tfjsLayersVersion, 'tfjs-converter': tfjsConverterVersion, - 'tfjs-backend-cpu': tfjsBackendCPUVersion, + // 'tfjs-backend-cpu': tfjsBackendCPUVersion, 'tfjs-backend-webgl': tfjsBackendWebGLVersion, 'tfjs-backend-wasm': tfjsBackendWASMVersion, };