human/test/test-node-wasm.js

27 lines
762 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-05-31 00:45:39 +02:00
// wasmPath: 'https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-wasm@3.6.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);