mirror of https://github.com/vladmandic/human
optimized blazeface anchors
parent
ee65aa7588
commit
c8b705f805
|
@ -404,9 +404,9 @@ async function main() {
|
||||||
await setupUI();
|
await setupUI();
|
||||||
// setup webcam
|
// setup webcam
|
||||||
await setupCamera();
|
await setupCamera();
|
||||||
|
|
||||||
// or setup image
|
// or setup image
|
||||||
// const input = await setupImage();
|
// const input = await setupImage();
|
||||||
// setup output canvas from input object
|
|
||||||
|
|
||||||
const msg = `Human ready: version: ${human.version} TensorFlow/JS version: ${human.tf.version_core}`;
|
const msg = `Human ready: version: ${human.version} TensorFlow/JS version: ${human.tf.version_core}`;
|
||||||
document.getElementById('log').innerText = msg;
|
document.getElementById('log').innerText = msg;
|
||||||
|
|
|
@ -4,9 +4,8 @@ export default {
|
||||||
face: {
|
face: {
|
||||||
enabled: true, // refers to detector, but since all other face modules rely on detector, it should be a global
|
enabled: true, // refers to detector, but since all other face modules rely on detector, it should be a global
|
||||||
detector: {
|
detector: {
|
||||||
modelPath: '../models/blazeface/tfhub/model.json', // can be blazeface-front or blazeface-back
|
modelPath: '../models/blazeface/back/model.json', // can be blazeface-front or blazeface-back
|
||||||
anchorSize: 128, // fixed regardless of model
|
inputSize: 256, // fixed value: 128 for front and tfhub and 256 for back
|
||||||
inputSize: 128, // fixed value: 128 for front and tfhub and 256 for back
|
|
||||||
maxFaces: 10, // maximum number of faces detected in the input, should be set to the minimum number for performance
|
maxFaces: 10, // maximum number of faces detected in the input, should be set to the minimum number for performance
|
||||||
skipFrames: 10, // how many frames to go without running the bounding box detector
|
skipFrames: 10, // how many frames to go without running the bounding box detector
|
||||||
minConfidence: 0.5, // threshold for discarding a prediction
|
minConfidence: 0.5, // threshold for discarding a prediction
|
||||||
|
|
Loading…
Reference in New Issue