From 562f2375c5d6ce9c3366fbdec774088fbf5f5759 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Thu, 4 Nov 2021 13:26:33 +0000 Subject: [PATCH] dnn(test): skip tests with high memory usage - 32-bit configuration may fail due to memory fragmentation --- modules/dnn/test/test_model.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/modules/dnn/test/test_model.cpp b/modules/dnn/test/test_model.cpp index 6ac9702c69..4c08cc30b9 100644 --- a/modules/dnn/test/test_model.cpp +++ b/modules/dnn/test/test_model.cpp @@ -282,7 +282,10 @@ TEST_P(Test_Model, Classify) TEST_P(Test_Model, DetectRegion) { - applyTestTag(CV_TEST_TAG_LONG, CV_TEST_TAG_MEMORY_1GB); + applyTestTag( + CV_TEST_TAG_LONG, + CV_TEST_TAG_MEMORY_2GB + ); #if defined(INF_ENGINE_RELEASE) && INF_ENGINE_VER_MAJOR_EQ(2020040000) // nGraph compilation failure if (backend == DNN_BACKEND_INFERENCE_ENGINE_NGRAPH && target == DNN_TARGET_OPENCL) @@ -332,7 +335,10 @@ TEST_P(Test_Model, DetectRegion) TEST_P(Test_Model, DetectRegionWithNmsAcrossClasses) { - applyTestTag(CV_TEST_TAG_LONG, CV_TEST_TAG_MEMORY_1GB); + applyTestTag( + CV_TEST_TAG_LONG, + CV_TEST_TAG_MEMORY_2GB + ); #if defined(INF_ENGINE_RELEASE) && INF_ENGINE_VER_MAJOR_EQ(2020040000) // nGraph compilation failure if (backend == DNN_BACKEND_INFERENCE_ENGINE_NGRAPH && target == DNN_TARGET_OPENCL) @@ -582,6 +588,10 @@ TEST_P(Test_Model, Detection_normalized) TEST_P(Test_Model, Segmentation) { + applyTestTag( + CV_TEST_TAG_MEMORY_2GB + ); + std::string inp = _tf("dog416.png"); std::string weights_file = _tf("fcn8s-heavy-pascal.prototxt"); std::string config_file = _tf("fcn8s-heavy-pascal.caffemodel", false);