ov2.0 cpp hello reshape ssd (#8874)

* OV2.0 API C++ hello_reashe_ssd sample

* clean header

* fix test for changed sample cmd line

* adopt to PR-8898

* sync with PR-9054, simplify code

* apply code_style.diff

* sync with PR-9051
This commit is contained in:
Vladimir Dudnik authored and GitHub committed 2021-12-10 15:58:23 +03:00
1 parent 0c68574aa7
commit c85fb74efc
7 files changed
+191 -396

No files matched your search

+1 -1
View File
@@ -5,7 +5,7 @@ These tests execute IE samples on pregenerated IR
You can run tests not only from the <INSTALL_DIR>, but in this case you need to remember to adjust the environment variables like as WORKSPACE and SHARE
To install smoke tests:
``` bash
``` bash
- cd <working directory>/tests/samples_tests/smoke_tests
- mkdir build && cd build
- cmake ../..
@@ -48,12 +48,10 @@ def parse_hello_reshape_ssd(stdout):
log.error('Wrong output line: {}, while the test expects the following format: 4d shape'
'(Example: Resulting output shape = [1,1,200,7])'.format(line))
elif 'element, prob' in line:
if re.match("^.*prob\s+=.*\d,\s+bbox\s+=\s+\(.*\d,.*\d\)-\(.*\d,.*\d\),"
"\s+batch id\s+=\s+\d", line) is None:
if re.match("^.*prob\\s+=.*\\d,\\s+\\(.*\\d,.*\\d\)-\\(.*\\d,.*\\d\\)", line) is None:
is_ok = False
log.error('Wrong output line: {}, while the test expects the following format: 4d shape'
'(Example: [33,59] element, prob = 0.963015, bbox = (189.776,110.933)-(309.288,306.952), '
'batch id = 0)'.format(line))
log.error('Wrong output line: {}, while the test expects the following format: '
'Example: [33,59] element, prob = 0.963015, (189,110)-(309,306)'.format(line))
elif 'was saved' in line:
path_result = os.path.join(os.getcwd(), line.split(' ')[-1].strip())
if not os.path.isfile(path_result):
@@ -22,8 +22,8 @@ log.basicConfig(format="[ %(levelname)s ] %(message)s", level=log.INFO, stream=s
test_data_fp32 = get_tests(cmd_params={'i': [os.path.join('500x500', 'cat.bmp')],
'm': [os.path.join('ssd512', 'FP32', 'ssd512.xml')],
'd': ['CPU'],
'batch': [1, 2, 4]}, use_device=['d'], use_batch=True
'd': ['CPU']},
use_device=['d'], use_batch=False
)