da9d922498e0d1f885b2658800eb8bb336e3b2a8
Batch-4 was tuned for 8 GB GPUs; its TRT workspace (~54 MiB per batch unit) crowds out the other engines on smaller cards. VramCappedBatch keeps the configured batch on 8 GB-class cards and up (threshold 7.5 GiB — 8 GB cards report ~8188 MiB) and drops to single-face batches below that: identical results, multi-face frames just run sequentially, ~160 MiB freed on a 4 GB RTX A400. Also caps the legacy 8/32 LoadEngine profile, whose .b32 engine (~1.7 GB workspace) would be fatal on small cards. Initialize() and OptimizeModel() share the same call so their profiles cannot drift. Small cards rebuild the recognizer engine once (filename loses the .b4 suffix); 8 GB+ machines keep their cached engines unchanged. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Description
No description provided
13 MiB
Languages
C
55.3%
C++
43.4%
Python
0.5%
CMake
0.3%
Objective-C++
0.2%
Other
0.2%