From e5a6342e4e2dd5d79b73cafada222ef4b1d1621a Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Sat, 6 Nov 2021 10:21:39 -0400 Subject: [PATCH] update caching notes --- Caching.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Caching.md b/Caching.md index a183e65..aaa5986 100644 --- a/Caching.md +++ b/Caching.md @@ -11,14 +11,14 @@ By default `Human` runs extensive caching to avoid re-running every model on eac ### Check if caching is allowed Check if input changed above threshold (e.g. different image or scene change in video) by -reducing input (image, video, etc.) to 32x32 grayscale image and run pixel compare with previous input +measuring relative pixel difference between last known input and current input averaged by input resolution If difference is higher than `config.cacheSensitivity` (expressed in range 0..1) then cache is reset Setting `config.cacheSensitivity=80` disables caching Caching can be monitored via `human.performance`: -- `frames`: total number of processed frames -- `cached`: number of frames considered for caching +- `totalFrames`: total number of processed frames +- `cachedFrames`: number of frames considered for caching ### Per-module results caching