Prevent OOM

This commit is contained in:
2026-06-18 05:55:31 +10:00
parent ebba70b9d9
commit b3436a61ee
44 changed files with 1797 additions and 66 deletions
@@ -1647,6 +1647,9 @@ int HelmetDetectionTest() {
}
// ============================================================================
// ElasticGPUTest — Verify elastic pool, round-robin dispatch, multi-GPU,
// concurrent inference, and idle-slot cleanup.
@@ -2222,14 +2225,24 @@ int RTMPOSETest() {
VideoDetectorEngine(onnxclmodelFilePath, videoFile, modelType);// 22 is RT, 21 is onnx
return 0;
}
int FireNSmokeTest() {
int modelType = 16; // Custom model type for helmet detection, adjust as needed based on how the model is set up in the engine
std::string onnxclmodelFilePath = "C:\\Projects\\ANSVIS\\Models\\ANS_FireSmoke_v2.0\\ANS_FireSmoke_v2.0.zip";
std::string videoFile = "E:\\Programs\\DemoAssets\\Videos\\FireNSmoke\\BCA1.mp4";
VideoDetectorEngine(onnxclmodelFilePath, videoFile, modelType);// 22 is RT, 21 is onnx
return 0;
}
int main()
{
//FallDetectorTest();
//ALPROD_Test();
//FireNSmokeTest();
FireNSmokeTest();
//ElasticGPUTest();
RTMPOSETest_CPP();
//RTMPOSETest_CPP();
//RTMPOSETest();
//YOLO26SEGYolo11Test();
//YOLO26POSEYolo11Test();