mirror of https://github.com/vladmandic/human
update
parent
b7e0674abe
commit
7654f52c28
|
@ -65,7 +65,7 @@ export default {
|
||||||
modelPath: '../models/blazeface-back.json', // can be 'blazeface-front', 'blazeface-back' or 'faceboxes'
|
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-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
|
// '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'
|
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
|
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
|
// false means higher performance, but incorrect mesh mapping if face angle is above 20 degrees
|
||||||
|
|
|
@ -8,9 +8,8 @@ import draw from './draw.js';
|
||||||
import Menu from './menu.js';
|
import Menu from './menu.js';
|
||||||
import GLBench from './gl-bench.js';
|
import GLBench from './gl-bench.js';
|
||||||
|
|
||||||
const userConfig = {}; // add any user configuration overrides
|
// const userConfig = {}; // add any user configuration overrides
|
||||||
|
|
||||||
/*
|
|
||||||
const userConfig = {
|
const userConfig = {
|
||||||
backend: 'wasm',
|
backend: 'wasm',
|
||||||
async: false,
|
async: false,
|
||||||
|
@ -19,7 +18,6 @@ const userConfig = {
|
||||||
body: { enabled: false },
|
body: { enabled: false },
|
||||||
hand: { enabled: false },
|
hand: { enabled: false },
|
||||||
};
|
};
|
||||||
*/
|
|
||||||
|
|
||||||
const human = new Human(userConfig);
|
const human = new Human(userConfig);
|
||||||
|
|
||||||
|
@ -532,6 +530,8 @@ async function main() {
|
||||||
if (ui.modelsPreload && !ui.useWorker) {
|
if (ui.modelsPreload && !ui.useWorker) {
|
||||||
status('loading');
|
status('loading');
|
||||||
await human.load(userConfig); // this is not required, just pre-loads all models
|
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) {
|
if (!ui.useWorker) {
|
||||||
status('initializing');
|
status('initializing');
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
"seedrandom": "^3.0.5",
|
"seedrandom": "^3.0.5",
|
||||||
"simple-git": "^2.35.2",
|
"simple-git": "^2.35.2",
|
||||||
"tslib": "^2.1.0",
|
"tslib": "^2.1.0",
|
||||||
"typescript": "^4.3.0-dev.20210225"
|
"typescript": "^4.3.0-dev.20210226"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node --trace-warnings --unhandled-rejections=strict --trace-uncaught --no-deprecation src/node.js",
|
"start": "node --trace-warnings --unhandled-rejections=strict --trace-uncaught --no-deprecation src/node.js",
|
||||||
|
|
2
wiki
2
wiki
|
@ -1 +1 @@
|
||||||
Subproject commit d99aa10997927e21559297d3b8e58718cb7c1f28
|
Subproject commit ac89ded33d7063aa059575eae1df3f81bfb35b7f
|
Loading…
Reference in New Issue