Skip to content

Remove ASSERT_ANY_THROW tests for Myriad plugin - #13692

Merged
opencv-pushbot merged 1 commit into
opencv:3.4from
dkurt:dnn_do_not_crash_myriad_in_tests
Jan 28, 2019
Merged

opencv-pushbot merged 1 commit into
opencv:3.4from
dkurt:dnn_do_not_crash_myriad_in_tests

Conversation

@dkurt

@dkurt dkurt commented Jan 25, 2019 •

Copy link
Copy Markdown
Member

Merge with extra: opencv/opencv_extra#571

In #13387 were introduced tests that check Intel's Inference Engine Myriad plugin crash for FP32 networks (because only FP16 are supported). However we use don't unload plugin and subsequent tests could work slower or even produce incorrect results.

Proposed to replace these tests to correct ones adding valid FP16 models.

Current:

$ ./bin/opencv_test_dnn --gtest_filter=Layer_Test_Convolution_DLDT*
[==========] Running 4 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 4 tests from Layer_Test_Convolution_DLDT
[ RUN      ] Layer_Test_Convolution_DLDT.Accuracy/0, where GetParam() = CPU
[       OK ] Layer_Test_Convolution_DLDT.Accuracy/0 (25 ms)
[ RUN      ] Layer_Test_Convolution_DLDT.Accuracy/1, where GetParam() = MYRIAD
[       OK ] Layer_Test_Convolution_DLDT.Accuracy/1 (2 ms)
[ RUN      ] Layer_Test_Convolution_DLDT.setInput_uint8/0, where GetParam() = CPU
[       OK ] Layer_Test_Convolution_DLDT.setInput_uint8/0 (5 ms)
[ RUN      ] Layer_Test_Convolution_DLDT.setInput_uint8/1, where GetParam() = MYRIAD
[       OK ] Layer_Test_Convolution_DLDT.setInput_uint8/1 (4003 ms)  <-- This is it
[----------] 4 tests from Layer_Test_Convolution_DLDT (4035 ms total)

[----------] Global test environment tear-down
[==========] 4 tests from 1 test case ran. (4035 ms total)
[  PASSED  ] 4 tests.

With proposed fix:

[==========] Running 4 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 4 tests from Layer_Test_Convolution_DLDT
[ RUN      ] Layer_Test_Convolution_DLDT.Accuracy/0, where GetParam() = CPU
[       OK ] Layer_Test_Convolution_DLDT.Accuracy/0 (25 ms)
[ RUN      ] Layer_Test_Convolution_DLDT.Accuracy/1, where GetParam() = MYRIAD
[       OK ] Layer_Test_Convolution_DLDT.Accuracy/1 (29 ms)
[ RUN      ] Layer_Test_Convolution_DLDT.setInput_uint8/0, where GetParam() = CPU
[       OK ] Layer_Test_Convolution_DLDT.setInput_uint8/0 (7 ms)
[ RUN      ] Layer_Test_Convolution_DLDT.setInput_uint8/1, where GetParam() = MYRIAD
[       OK ] Layer_Test_Convolution_DLDT.setInput_uint8/1 (54 ms)  <-- OK
[----------] 4 tests from Layer_Test_Convolution_DLDT (115 ms total)

[----------] Global test environment tear-down
[==========] 4 tests from 1 test case ran. (115 ms total)
[  PASSED  ] 4 tests.
force_builders=Custom
docker_image:Custom=ubuntu-openvino:16.04
test_opencl:Custom=OFF
buildworker:Custom=linux-2

@dkurt
dkurt force-pushed the dnn_do_not_crash_myriad_in_tests branch from b817556 to ff775b2 Compare January 25, 2019 17:11

@alalek alalek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done! Thank you 👍

@opencv-pushbot
opencv-pushbot merged commit ff775b2 into opencv:3.4 Jan 28, 2019
@alalek alalek mentioned this pull request Feb 1, 2019
@dkurt
dkurt deleted the dnn_do_not_crash_myriad_in_tests branch May 6, 2019 05:49
SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants