Skip to content

Commit

Permalink
Enabled tests on IE backend
Browse files Browse the repository at this point in the history
  • Loading branch information
l-bat committed Feb 11, 2019
1 parent b068d26 commit 6b4becf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/dnn/src/layers/normalize_bbox_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class NormalizeBBoxLayerImpl CV_FINAL : public NormalizeBBoxLayer
{
if (backendId == DNN_BACKEND_INFERENCE_ENGINE)
{
if (!(pnorm == 2 || pnorm == 1)) {
if (pnorm != 2) {
return false;
}
return preferableTarget == DNN_TARGET_MYRIAD ? !acrossSpatial : startAxis == 1;
Expand Down
2 changes: 1 addition & 1 deletion modules/dnn/test/test_backends.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ TEST_P(DNNTestNetwork, OpenPose_pose_mpi_faster_4_stages)
TEST_P(DNNTestNetwork, OpenFace)
{
#if defined(INF_ENGINE_RELEASE)
#if (INF_ENGINE_RELEASE < 2018030000 || INF_ENGINE_RELEASE == 2018050000)
#if (INF_ENGINE_RELEASE < 2018030000)
if (backend == DNN_BACKEND_INFERENCE_ENGINE && target == DNN_TARGET_MYRIAD)
throw SkipTestException("");
#elif INF_ENGINE_RELEASE < 2018040000
Expand Down
4 changes: 2 additions & 2 deletions modules/dnn/test/test_torch_importer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,12 @@ class Test_Torch_nets : public DNNTestLayer {};

TEST_P(Test_Torch_nets, OpenFace_accuracy)
{
#if defined(INF_ENGINE_RELEASE) && (INF_ENGINE_RELEASE < 2018030000 || INF_ENGINE_RELEASE == 2018050000)
#if defined(INF_ENGINE_RELEASE) && (INF_ENGINE_RELEASE < 2018030000)
if (backend == DNN_BACKEND_INFERENCE_ENGINE && target == DNN_TARGET_MYRIAD)
throw SkipTestException("");
#endif
checkBackend();
if (backend == DNN_BACKEND_INFERENCE_ENGINE && target == DNN_TARGET_OPENCL_FP16)
if (backend == DNN_BACKEND_INFERENCE_ENGINE && target == DNN_TARGET_OPENCL_FP16 && INF_ENGINE_RELEASE != 2018050000)
throw SkipTestException("");

const string model = findDataFile("dnn/openface_nn4.small2.v1.t7", false);
Expand Down

0 comments on commit 6b4becf

Please sign in to comment.