We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17a7d60 commit affc5aeCopy full SHA for affc5ae
1 file changed
tests/test_codebase/test_mmdet/test_mmdet_models.py
@@ -1409,18 +1409,19 @@ def test_ssd_head_get_bboxes__ncnn(is_dynamic: bool):
1409
'img_shape': (s, s, 3)
1410
}]
1411
output_names = ['output']
1412
- input_names = ['input']
+ input_names = []
1413
+ for i in range(6):
1414
+ input_names.append('cls_scores_' + str(i))
1415
+ input_names.append('bbox_preds_' + str(i))
1416
dynamic_axes = None
1417
if is_dynamic:
1418
dynamic_axes = {
- input_names[0]: {
- 2: 'height',
- 3: 'width'
1419
- },
1420
output_names[0]: {
1421
1: 'num_dets',
1422
}
1423
+ for input_name in input_names:
1424
+ dynamic_axes[input_name] = {2: 'height', 3: 'width'}
1425
deploy_cfg = mmcv.Config(
1426
dict(
1427
backend_config=dict(type=Backend.NCNN.value),
0 commit comments