human/test/test-backend-node-gpu.js

33 lines
777 B
JavaScript
Raw Permalink Normal View History

2021-10-02 13:46:07 +02:00
process.env.TF_CPP_MIN_LOG_LEVEL = '2';
2022-08-15 17:29:56 +02:00
const H = require('../dist/human.node-gpu.js');
2022-08-30 16:28:33 +02:00
const test = require('./test-node-main.js').test;
2021-04-14 18:53:00 +02:00
const config = {
2024-09-11 18:13:03 +02:00
cacheSensitivity: 0.01,
2021-04-14 18:53:00 +02:00
modelBasePath: 'file://models/',
backend: 'tensorflow',
debug: false,
2021-09-13 19:28:35 +02:00
async: true,
2021-04-14 18:53:00 +02:00
face: {
enabled: true,
2022-08-30 16:28:33 +02:00
detector: { rotation: false },
2021-04-14 18:53:00 +02:00
mesh: { enabled: true },
iris: { enabled: true },
description: { enabled: true },
emotion: { enabled: true },
antispoof: { enabled: true },
liveness: { enabled: true },
2021-04-14 18:53:00 +02:00
},
hand: { enabled: true },
body: { enabled: true },
object: { enabled: true },
2022-10-02 21:09:00 +02:00
segmentation: { enabled: false },
2021-06-05 23:51:46 +02:00
filter: { enabled: false },
2021-04-14 18:53:00 +02:00
};
2022-08-15 17:29:56 +02:00
async function main() {
test(H.Human, config);
}
2022-08-30 16:28:33 +02:00
if (require.main === module) main();