|
|
|
@ -114,6 +114,9 @@ TEST_P(Reproducibility_AlexNet, Accuracy) |
|
|
|
|
{ |
|
|
|
|
Target targetId = get<1>(GetParam()); |
|
|
|
|
applyTestTag(targetId == DNN_TARGET_CPU ? CV_TEST_TAG_MEMORY_512MB : CV_TEST_TAG_MEMORY_1GB); |
|
|
|
|
if (!ocl::useOpenCL() && targetId != DNN_TARGET_CPU) |
|
|
|
|
throw SkipTestException("OpenCL is disabled"); |
|
|
|
|
|
|
|
|
|
bool readFromMemory = get<0>(GetParam()); |
|
|
|
|
Net net; |
|
|
|
|
{ |
|
|
|
@ -154,7 +157,8 @@ INSTANTIATE_TEST_CASE_P(/**/, Reproducibility_AlexNet, Combine(testing::Bool(), |
|
|
|
|
|
|
|
|
|
TEST(Reproducibility_FCN, Accuracy) |
|
|
|
|
{ |
|
|
|
|
applyTestTag(CV_TEST_TAG_LONG, CV_TEST_TAG_MEMORY_2GB); |
|
|
|
|
applyTestTag(CV_TEST_TAG_LONG, CV_TEST_TAG_DEBUG_VERYLONG, CV_TEST_TAG_MEMORY_2GB); |
|
|
|
|
|
|
|
|
|
Net net; |
|
|
|
|
{ |
|
|
|
|
const string proto = findDataFile("dnn/fcn8s-heavy-pascal.prototxt", false); |
|
|
|
@ -183,7 +187,7 @@ TEST(Reproducibility_FCN, Accuracy) |
|
|
|
|
|
|
|
|
|
TEST(Reproducibility_SSD, Accuracy) |
|
|
|
|
{ |
|
|
|
|
applyTestTag(CV_TEST_TAG_MEMORY_512MB); |
|
|
|
|
applyTestTag(CV_TEST_TAG_MEMORY_512MB, CV_TEST_TAG_DEBUG_LONG); |
|
|
|
|
Net net; |
|
|
|
|
{ |
|
|
|
|
const string proto = findDataFile("dnn/ssd_vgg16.prototxt", false); |
|
|
|
@ -281,6 +285,9 @@ TEST_P(Reproducibility_ResNet50, Accuracy) |
|
|
|
|
{ |
|
|
|
|
Target targetId = GetParam(); |
|
|
|
|
applyTestTag(targetId == DNN_TARGET_CPU ? CV_TEST_TAG_MEMORY_512MB : CV_TEST_TAG_MEMORY_1GB); |
|
|
|
|
if (!ocl::useOpenCL() && targetId != DNN_TARGET_CPU) |
|
|
|
|
throw SkipTestException("OpenCL is disabled"); |
|
|
|
|
|
|
|
|
|
Net net = readNetFromCaffe(findDataFile("dnn/ResNet-50-deploy.prototxt", false), |
|
|
|
|
findDataFile("dnn/ResNet-50-model.caffemodel", false)); |
|
|
|
|
|
|
|
|
@ -541,7 +548,11 @@ INSTANTIATE_TEST_CASE_P(Test_Caffe, opencv_face_detector, |
|
|
|
|
|
|
|
|
|
TEST_P(Test_Caffe_nets, FasterRCNN_vgg16) |
|
|
|
|
{ |
|
|
|
|
applyTestTag(CV_TEST_TAG_LONG, (target == DNN_TARGET_CPU ? CV_TEST_TAG_MEMORY_1GB : CV_TEST_TAG_MEMORY_2GB)); |
|
|
|
|
applyTestTag( |
|
|
|
|
(target == DNN_TARGET_CPU ? CV_TEST_TAG_MEMORY_1GB : CV_TEST_TAG_MEMORY_2GB), |
|
|
|
|
CV_TEST_TAG_LONG, |
|
|
|
|
CV_TEST_TAG_DEBUG_VERYLONG |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
#if defined(INF_ENGINE_RELEASE) |
|
|
|
|
if (backend == DNN_BACKEND_INFERENCE_ENGINE && (target == DNN_TARGET_OPENCL || target == DNN_TARGET_OPENCL_FP16)) |
|
|
|
@ -559,7 +570,10 @@ TEST_P(Test_Caffe_nets, FasterRCNN_vgg16) |
|
|
|
|
|
|
|
|
|
TEST_P(Test_Caffe_nets, FasterRCNN_zf) |
|
|
|
|
{ |
|
|
|
|
applyTestTag(target == DNN_TARGET_CPU ? CV_TEST_TAG_MEMORY_512MB : CV_TEST_TAG_MEMORY_1GB); |
|
|
|
|
applyTestTag( |
|
|
|
|
(target == DNN_TARGET_CPU ? CV_TEST_TAG_MEMORY_512MB : CV_TEST_TAG_MEMORY_1GB), |
|
|
|
|
CV_TEST_TAG_DEBUG_LONG |
|
|
|
|
); |
|
|
|
|
if ((backend == DNN_BACKEND_INFERENCE_ENGINE && target == DNN_TARGET_OPENCL_FP16) || |
|
|
|
|
(backend == DNN_BACKEND_INFERENCE_ENGINE && target == DNN_TARGET_MYRIAD)) |
|
|
|
|
throw SkipTestException(""); |
|
|
|
@ -571,7 +585,11 @@ TEST_P(Test_Caffe_nets, FasterRCNN_zf) |
|
|
|
|
|
|
|
|
|
TEST_P(Test_Caffe_nets, RFCN) |
|
|
|
|
{ |
|
|
|
|
applyTestTag(CV_TEST_TAG_LONG, (target == DNN_TARGET_CPU ? CV_TEST_TAG_MEMORY_512MB : CV_TEST_TAG_MEMORY_2GB)); |
|
|
|
|
applyTestTag( |
|
|
|
|
(target == DNN_TARGET_CPU ? CV_TEST_TAG_MEMORY_512MB : CV_TEST_TAG_MEMORY_2GB), |
|
|
|
|
CV_TEST_TAG_LONG, |
|
|
|
|
CV_TEST_TAG_DEBUG_VERYLONG |
|
|
|
|
); |
|
|
|
|
if ((backend == DNN_BACKEND_INFERENCE_ENGINE && target == DNN_TARGET_OPENCL_FP16) || |
|
|
|
|
(backend == DNN_BACKEND_INFERENCE_ENGINE && target == DNN_TARGET_MYRIAD)) |
|
|
|
|
throw SkipTestException(""); |
|
|
|
|