diff --git a/CHANGELOG.md b/CHANGELOG.md index 310a4d73..3d786897 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # @vladmandic/human -Version: **1.8.5** +Version: **1.9.0** Description: **Human: AI-powered 3D Face Detection & Rotation Tracking, Face Description & Recognition, Body Pose Tracking, 3D Hand & Finger Tracking, Iris Analysis, Age & Gender & Emotion Prediction, Gesture Recognition** Author: **Vladimir Mandic ** @@ -9,11 +9,14 @@ Repository: **** ## Changelog +### **human 1.9.0 beta with breaking changes regarding caching** 2021/05/18 mandic00@live.com + + +### **origin/main** 2021/05/18 mandic00@live.com + + ### **1.8.5** 2021/05/18 mandic00@live.com - -### **origin/main** 2021/05/17 mandic00@live.com - - add node-video sample - add node-webcam demo - fix node build and update model signatures diff --git a/src/config.ts b/src/config.ts index 09513477..517241a5 100644 --- a/src/config.ts +++ b/src/config.ts @@ -201,7 +201,7 @@ const config: Config = { // warmup pre-initializes all models for faster inference but can take // significant time on startup // only used for `webgl` and `humangl` backends - cacheSensitivity: 0.005, // cache sensitivity + cacheSensitivity: 0.004, // cache sensitivity // values 0..1 where 0.01 means reset cache if input changed more than 1% // set to 0 to disable caching filter: { // run input through image filters before inference diff --git a/src/human.ts b/src/human.ts index af04c615..95dcdc0b 100644 --- a/src/human.ts +++ b/src/human.ts @@ -344,7 +344,7 @@ export class Human { /** @hidden */ #skipFrame = async (input) => { if (this.config.cacheSensitivity === 0) return true; - const resizeFact = 32; + const resizeFact = 50; const reduced = input.resizeBilinear([Math.trunc(input.shape[1] / resizeFact), Math.trunc(input.shape[2] / resizeFact)]); const sumT = this.tf.sum(reduced); reduced.dispose(); diff --git a/wiki b/wiki index 3030450d..534d4d77 160000 --- a/wiki +++ b/wiki @@ -1 +1 @@ -Subproject commit 3030450d4a177092285d73d313a3efc7c5d8a966 +Subproject commit 534d4d77d99b0fc71913e8ef6242e4c6461614f5