implemented dev-server

pull/280/head
Vladimir Mandic 2020-11-05 23:46:37 -05:00
parent 7b8b295306
commit 21f7926d1d
2 changed files with 4 additions and 3 deletions

View File

@ -50,7 +50,7 @@ export default {
// (note: module is not loaded until it is required) // (note: module is not loaded until it is required)
detector: { detector: {
modelPath: '../models/blazeface-back.json', // can be 'front' or 'back'. 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' 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 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 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: { emotion: {
enabled: true, 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 minConfidence: 0.3, // threshold for discarding a prediction
skipFrames: 15, // how many frames to go without re-running the detector 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: { body: {

View File

@ -25,6 +25,7 @@
"@tensorflow/tfjs": "^2.7.0", "@tensorflow/tfjs": "^2.7.0",
"@tensorflow/tfjs-node": "^2.7.0", "@tensorflow/tfjs-node": "^2.7.0",
"@vladmandic/pilogger": "^0.2.7", "@vladmandic/pilogger": "^0.2.7",
"chokidar": "^3.4.3",
"dayjs": "^1.9.4", "dayjs": "^1.9.4",
"esbuild": "^0.7.22", "esbuild": "^0.7.22",
"eslint": "^7.12.1", "eslint": "^7.12.1",