ANSFR: raise default slow-attribute refresh interval to 20 frames
With the heavier v1.4 ONNX age-gender model, interval 20 benchmarks at throughput parity with the v1.1 pack (16.8 ms / 59 fps vs 16.0 ms / 62 fps on RTX 3070, classroom.mp4, ~3.1 faces/frame) versus 19.9 ms / 50 fps at the old default of 5. Attributes refresh every ~0.8 s on a 25 fps camera (1.6 s on stable scenes, faster when faces appear), which is ample for age/gender/emotion; head pose and recognition still run every frame. Deployments wanting fresher attributes can lower it at runtime via SetANSRFAttributeInterval. Full test suite passes at the new default; GetANSRFModelInfo reports "attribute_interval":20. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1991,7 +1991,7 @@ int ClassroomAttributesVideoTest()
|
||||
static void RunSinglePackBenchmark(const std::string& label,
|
||||
const std::string& modelZip, const std::string& dbFolder,
|
||||
int warmupFrames = 10, int measuredFrames = 100,
|
||||
int attributeInterval = 0) // 0 = keep the DLL default (5)
|
||||
int attributeInterval = 0) // 0 = keep the DLL default (20)
|
||||
{
|
||||
const std::string videoPath = "C:\\Programs\\DemoAssets\\Videos\\classroom.mp4";
|
||||
const std::string detectorZip = kFaceDetectorZip;
|
||||
|
||||
Reference in New Issue
Block a user