2021-04-14 18:53:00 +02:00
|
|
|
const Human = require('../dist/human.node-wasm.js').default;
|
|
|
|
const test = require('./test-main.js').test;
|
|
|
|
|
|
|
|
const config = {
|
|
|
|
modelBasePath: 'http://localhost:10030/models/',
|
|
|
|
backend: 'wasm',
|
2021-05-18 14:22:33 +02:00
|
|
|
wasmPath: 'node_modules/@tensorflow/tfjs-backend-wasm/dist/',
|
2021-08-31 19:00:06 +02:00
|
|
|
// wasmPath: 'https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-wasm@3.9.0/dist/',
|
2021-04-14 18:53:00 +02:00
|
|
|
debug: false,
|
|
|
|
async: false,
|
|
|
|
face: {
|
|
|
|
enabled: true,
|
|
|
|
detector: { enabled: true, rotation: true },
|
|
|
|
mesh: { enabled: true },
|
|
|
|
iris: { enabled: true },
|
|
|
|
description: { enabled: true },
|
|
|
|
emotion: { enabled: true },
|
|
|
|
},
|
|
|
|
hand: { enabled: true },
|
|
|
|
body: { enabled: true },
|
|
|
|
object: { enabled: false },
|
2021-06-05 23:51:46 +02:00
|
|
|
segmentation: { enabled: true },
|
|
|
|
filter: { enabled: false },
|
2021-04-14 18:53:00 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
test(Human, config);
|