Publishing 2019 R1.1 content and Myriad plugin sources (#162)
[platform/upstream/dldt.git] / inference-engine / tests / unit / builders / detection_output_layer_test.cpp
index e636be9..9c308a3 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2019 Intel Corporation
+// Copyright (C) 2018-2019 Intel Corporation
 // SPDX-License-Identifier: Apache-2.0
 //
 
@@ -92,7 +92,7 @@ TEST_F(DetectionOutputLayerBuilderTest, cannotCreateLayerWithWrongNMSThreshold)
     layer.setNumClasses(2);
     layer.setShareLocation(true);
     layer.setBackgroudLabelId(-1);
-    layer.setNMSThreshold(0);  // here
+    layer.setNMSThreshold(-0.02);  // here
     layer.setTopK(400);
     layer.setCodeType("caffe.PriorBoxParameter.CENTER_SIZE");
     layer.setVariantEncodedInTarget(false);
@@ -112,6 +112,6 @@ TEST_F(DetectionOutputLayerBuilderTest, cannotCreateLayerWithWrongConfidenceThre
     layer.setCodeType("caffe.PriorBoxParameter.CENTER_SIZE");
     layer.setVariantEncodedInTarget(false);
     layer.setKeepTopK(200);
-    layer.setConfidenceThreshold(0);  // here
+    layer.setConfidenceThreshold(-0.1);  // here
     ASSERT_THROW(network.addLayer(layer), InferenceEngine::details::InferenceEngineException);
-}
\ No newline at end of file
+}