diff --git a/README.md b/README.md index 7fd74db9..fc648548 100644 --- a/README.md +++ b/README.md @@ -398,10 +398,8 @@ result = { } ], performance = { // performance data of last execution for each module measuredin miliseconds - config, // time to parse configuration backend, // time to initialize tf backend load, // time to load models - sanity, // time for input verification image, // time for image processing body, // model time hand, // model time diff --git a/assets/screenshot-menu.png b/assets/screenshot-menu.png index d01c610b..a2a4d983 100644 Binary files a/assets/screenshot-menu.png and b/assets/screenshot-menu.png differ diff --git a/demo/browser.js b/demo/browser.js index 87bb7534..7b99587b 100644 --- a/demo/browser.js +++ b/demo/browser.js @@ -32,7 +32,7 @@ const config = { backend: 'webgl', // if you want to use 'wasm' backend, enable script load of tf and tf-backend-wasm in index.html filter: { enabled: true, - width: 720, + width: 0, height: 0, brightness: 0, contrast: 0, diff --git a/src/human.js b/src/human.js index e37d558e..b862955e 100644 --- a/src/human.js +++ b/src/human.js @@ -179,20 +179,16 @@ class Human { const perf = {}; let timeStamp; - timeStamp = now(); this.config = mergeDeep(defaults, userConfig); if (!this.config.videoOptimized) this.config = mergeDeep(this.config, override); - perf.config = Math.trunc(now() - timeStamp); // sanity checks - timeStamp = now(); this.state = 'check'; const error = sanity(input); if (error) { this.log(error, input); return { error }; } - perf.sanity = Math.trunc(now() - timeStamp); // eslint-disable-next-line no-async-promise-executor return new Promise(async (resolve) => {