human/test/test-node-wasm.js

27 lines
644 B
JavaScript
Raw Normal View History

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-04-14 18:53:00 +02:00
debug: false,
async: false,
filter: {
enabled: true,
},
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 },
};
test(Human, config);