From 7654f52c283a7ca5c379f05942373f50339922ba Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Fri, 26 Feb 2021 10:05:56 -0500 Subject: [PATCH] update --- config.js | 2 +- demo/browser.js | 6 +++--- package.json | 2 +- wiki | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config.js b/config.js index ae199bac..30b0f505 100644 --- a/config.js +++ b/config.js @@ -65,7 +65,7 @@ export default { modelPath: '../models/blazeface-back.json', // can be 'blazeface-front', 'blazeface-back' or 'faceboxes' // 'blazeface-front' is blazeface model optimized for large faces such as front-facing camera // 'blazeface-back' is blazeface model optimized for smaller and/or distanct faces - // 'faceboxes' is alternative model to 'blazeface + // 'faceboxes' is alternative model to 'blazeface' inputSize: 256, // fixed value: 128 for front and 256 for 'back' rotation: false, // use best-guess rotated face image or just box with rotation as-is // false means higher performance, but incorrect mesh mapping if face angle is above 20 degrees diff --git a/demo/browser.js b/demo/browser.js index cc919484..de913846 100644 --- a/demo/browser.js +++ b/demo/browser.js @@ -8,9 +8,8 @@ import draw from './draw.js'; import Menu from './menu.js'; import GLBench from './gl-bench.js'; -const userConfig = {}; // add any user configuration overrides +// const userConfig = {}; // add any user configuration overrides -/* const userConfig = { backend: 'wasm', async: false, @@ -19,7 +18,6 @@ const userConfig = { body: { enabled: false }, hand: { enabled: false }, }; -*/ const human = new Human(userConfig); @@ -532,6 +530,8 @@ async function main() { if (ui.modelsPreload && !ui.useWorker) { status('loading'); await human.load(userConfig); // this is not required, just pre-loads all models + const loaded = Object.keys(human.models).filter((a) => human.models[a]).map((b) => b); + log('Demo loaded models:', loaded); } if (!ui.useWorker) { status('initializing'); diff --git a/package.json b/package.json index 8ea4d164..d4fbcc67 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "seedrandom": "^3.0.5", "simple-git": "^2.35.2", "tslib": "^2.1.0", - "typescript": "^4.3.0-dev.20210225" + "typescript": "^4.3.0-dev.20210226" }, "scripts": { "start": "node --trace-warnings --unhandled-rejections=strict --trace-uncaught --no-deprecation src/node.js", diff --git a/wiki b/wiki index d99aa109..ac89ded3 160000 --- a/wiki +++ b/wiki @@ -1 +1 @@ -Subproject commit d99aa10997927e21559297d3b8e58718cb7c1f28 +Subproject commit ac89ded33d7063aa059575eae1df3f81bfb35b7f