mirror of https://github.com/vladmandic/human
update caching notes
parent
0deb501cf4
commit
e5a6342e4e
|
@ -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 caching is allowed
|
||||||
|
|
||||||
Check if input changed above threshold (e.g. different image or scene change in video) by
|
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
|
If difference is higher than `config.cacheSensitivity` (expressed in range 0..1) then cache is reset
|
||||||
Setting `config.cacheSensitivity=80` disables caching
|
Setting `config.cacheSensitivity=80` disables caching
|
||||||
|
|
||||||
Caching can be monitored via `human.performance`:
|
Caching can be monitored via `human.performance`:
|
||||||
- `frames`: total number of processed frames
|
- `totalFrames`: total number of processed frames
|
||||||
- `cached`: number of frames considered for caching
|
- `cachedFrames`: number of frames considered for caching
|
||||||
|
|
||||||
### Per-module results caching
|
### Per-module results caching
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue