Skip to content

Commit 414ff00

Browse files
committed
Extend test coverage
1 parent 3e33d6f commit 414ff00

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

demos/tests/cases.py

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -345,37 +345,39 @@ def single_option_cases(key, *args):
345345
ModelArg('mask_rcnn_resnet50_atrous_coco'))
346346
)),
347347

348-
CppDemo(name='multi_channel_face_detection_demo',
349-
device_keys=['-d'],
350-
test_cases=combine_cases(
348+
CppDemo(name='multi_channel_face_detection_demo', device_keys=['-d'], test_cases=combine_cases(
351349
TestCase(options={'-no_show': None,
352350
**MONITORS,
353351
'-i': DATA_SEQUENCES['face-detection-adas']}),
354-
single_option_cases('-m',
355-
ModelArg('face-detection-adas-0001'),
356-
ModelArg('face-detection-retail-0004'),
357-
ModelArg('face-detection-retail-0005'),
358-
ModelArg('face-detection-retail-0044')),
352+
[
353+
TestCase(options={'-m': ModelArg('face-detection-adas-0001')}),
354+
TestCase(options={'-m': ModelArg('face-detection-retail-0004'), '-bs': '2',
355+
'-show_stats': '', '-n_iqs': '1', '-duplicate_num': '2'}),
356+
TestCase(options={'-m': ModelArg('face-detection-retail-0005'), '-bs': '3',
357+
'-n_iqs': '999'}),
358+
TestCase(options={'-m': ModelArg('face-detection-retail-0044'), '-bs': '4',
359+
'-show_stats': '', '-duplicate_num': '3', '-real_input_fps': ''})
360+
]
359361
)),
360362

361363
CppDemo(name='multi_channel_human_pose_estimation_demo', device_keys=['-d'],
362-
test_cases=combine_cases(
363-
TestCase(options={'-no_show': None,
364+
test_cases=[TestCase(options={'-no_show': None,
364365
**MONITORS,
365366
'-i': DATA_SEQUENCES['human-pose-estimation'],
366367
'-m': ModelArg('human-pose-estimation-0001')}),
367-
)),
368+
]),
368369

369-
CppDemo(name='multi_channel_object_detection_demo_yolov3',
370-
device_keys=['-d'],
371-
test_cases=combine_cases(
370+
CppDemo(name='multi_channel_object_detection_demo_yolov3', device_keys=['-d'], test_cases=combine_cases(
372371
TestCase(options={'-no_show': None,
373372
**MONITORS,
374373
'-i': DataPatternArg('object-detection-demo')}),
375-
single_option_cases('-m',
376-
ModelArg('person-vehicle-bike-detection-crossroad-yolov3-1020'),
377-
ModelArg('yolo-v3-tf'),
378-
ModelArg('yolo-v3-tiny-tf')),
374+
[
375+
TestCase(options={'-m': ModelArg('person-vehicle-bike-detection-crossroad-yolov3-1020')}),
376+
TestCase(options={'-m': ModelArg('yolo-v3-tf'), '-duplicate_num': '2',
377+
'-n_iqs': '20', '-fps_sp': '1', '-n_sp': '1', '-show_stats': '', '-real_input_fps': ''}),
378+
TestCase(options={'-m': ModelArg('yolo-v3-tiny-tf'), '-duplicate_num': '3',
379+
'-n_iqs': '9999', '-fps_sp': '50', '-n_sp': '30'})
380+
]
379381
)),
380382

381383
CppDemo(name='object_detection_demo', device_keys=['-d'], test_cases=combine_cases(

0 commit comments

Comments
 (0)