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