mirror of https://github.com/vladmandic/human
caching determination is now dynamic based on detection of input change and not based on input types
parent
8741695dbd
commit
956e4743c7
11
CHANGELOG.md
11
CHANGELOG.md
|
@ -1,6 +1,6 @@
|
||||||
# @vladmandic/human
|
# @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**
|
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 <mandic00@live.com>**
|
Author: **Vladimir Mandic <mandic00@live.com>**
|
||||||
|
@ -9,11 +9,14 @@ Repository: **<git+https://github.com/vladmandic/human.git>**
|
||||||
|
|
||||||
## Changelog
|
## 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
|
### **1.8.5** 2021/05/18 mandic00@live.com
|
||||||
|
|
||||||
|
|
||||||
### **origin/main** 2021/05/17 mandic00@live.com
|
|
||||||
|
|
||||||
- add node-video sample
|
- add node-video sample
|
||||||
- add node-webcam demo
|
- add node-webcam demo
|
||||||
- fix node build and update model signatures
|
- fix node build and update model signatures
|
||||||
|
|
|
@ -201,7 +201,7 @@ const config: Config = {
|
||||||
// warmup pre-initializes all models for faster inference but can take
|
// warmup pre-initializes all models for faster inference but can take
|
||||||
// significant time on startup
|
// significant time on startup
|
||||||
// only used for `webgl` and `humangl` backends
|
// 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%
|
// values 0..1 where 0.01 means reset cache if input changed more than 1%
|
||||||
// set to 0 to disable caching
|
// set to 0 to disable caching
|
||||||
filter: { // run input through image filters before inference
|
filter: { // run input through image filters before inference
|
||||||
|
|
|
@ -344,7 +344,7 @@ export class Human {
|
||||||
/** @hidden */
|
/** @hidden */
|
||||||
#skipFrame = async (input) => {
|
#skipFrame = async (input) => {
|
||||||
if (this.config.cacheSensitivity === 0) return true;
|
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 reduced = input.resizeBilinear([Math.trunc(input.shape[1] / resizeFact), Math.trunc(input.shape[2] / resizeFact)]);
|
||||||
const sumT = this.tf.sum(reduced);
|
const sumT = this.tf.sum(reduced);
|
||||||
reduced.dispose();
|
reduced.dispose();
|
||||||
|
|
2
wiki
2
wiki
|
@ -1 +1 @@
|
||||||
Subproject commit 3030450d4a177092285d73d313a3efc7c5d8a966
|
Subproject commit 534d4d77d99b0fc71913e8ef6242e4c6461614f5
|
Loading…
Reference in New Issue