mirror of https://github.com/vladmandic/human
log initialization
parent
ee8e7080de
commit
2566a9633f
|
@ -8,6 +8,8 @@ const fxImage = require('./imagefx.js');
|
||||||
const defaults = require('../config.js').default;
|
const defaults = require('../config.js').default;
|
||||||
const app = require('../package.json');
|
const app = require('../package.json');
|
||||||
|
|
||||||
|
let first = true;
|
||||||
|
|
||||||
// static config override for non-video detection
|
// static config override for non-video detection
|
||||||
const override = {
|
const override = {
|
||||||
face: { detector: { skipFrames: 0 }, age: { skipFrames: 0 }, emotion: { skipFrames: 0 } },
|
face: { detector: { skipFrames: 0 }, age: { skipFrames: 0 }, emotion: { skipFrames: 0 } },
|
||||||
|
@ -199,11 +201,11 @@ class Human {
|
||||||
perf.backend = Math.trunc(now() - timeStamp);
|
perf.backend = Math.trunc(now() - timeStamp);
|
||||||
|
|
||||||
// check number of loaded models
|
// check number of loaded models
|
||||||
const loadedModels = Object.values(this.models).filter((a) => a).length;
|
if (first) {
|
||||||
if (loadedModels === 0) {
|
|
||||||
this.log('Human library starting');
|
this.log('Human library starting');
|
||||||
this.log('Configuration:', this.config);
|
this.log('Configuration:', this.config);
|
||||||
this.log('Flags:', tf.ENV.flags);
|
this.log('Flags:', tf.ENV.flags);
|
||||||
|
first = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// load models if enabled
|
// load models if enabled
|
||||||
|
|
Loading…
Reference in New Issue