From a60db18949f83ff2fc3f6f72b338a2029b7d106b Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Thu, 5 Nov 2020 23:46:37 -0500 Subject: [PATCH] implemented dev-server --- config.js | 6 +++--- package.json | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config.js b/config.js index d26f0ee3..6f76f682 100644 --- a/config.js +++ b/config.js @@ -50,7 +50,7 @@ export default { // (note: module is not loaded until it is required) detector: { modelPath: '../models/blazeface-back.json', // can be 'front' or 'back'. - // 'front' is optimized for large faces such as front-facing camera and 'back' is optimized for distanct faces. + // 'front' is optimized for large faces such as front-facing camera and 'back' is optimized for distanct faces. inputSize: 256, // fixed value: 128 for front and 256 for 'back' maxFaces: 10, // maximum number of faces detected in the input, should be set to the minimum number for performance skipFrames: 15, // how many frames to go without re-running the face bounding box detector, only used for video inputs @@ -85,10 +85,10 @@ export default { }, emotion: { enabled: true, - inputSize: 64, // fixed value, 64 for 'mini' and 'lage', 48 for 'cnn' + inputSize: 64, // fixed value minConfidence: 0.3, // threshold for discarding a prediction skipFrames: 15, // how many frames to go without re-running the detector - modelPath: '../models/emotion-large.json', // can be 'mini', 'large' or 'cnn' + modelPath: '../models/emotion-large.json', // can be 'mini', 'large' }, }, body: { diff --git a/package.json b/package.json index da4eafeb..1fb4220b 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "@tensorflow/tfjs": "^2.7.0", "@tensorflow/tfjs-node": "^2.7.0", "@vladmandic/pilogger": "^0.2.7", + "chokidar": "^3.4.3", "dayjs": "^1.9.4", "esbuild": "^0.7.22", "eslint": "^7.12.1",