[Fix] Fix KeyError: 'ori_filename' when using --show-dir with centernet_resnet18_dcnv2_140e_coco.py (#7865)

pull/7206/head^2
jbwang1997 3 years ago committed by GitHub
parent 41ba2f4535
commit e283bae020
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      configs/centernet/centernet_resnet18_dcnv2_140e_coco.py

@ -78,9 +78,9 @@ test_pipeline = [
dict(type='DefaultFormatBundle'),
dict(
type='Collect',
meta_keys=('filename', 'ori_shape', 'img_shape', 'pad_shape',
'scale_factor', 'flip', 'flip_direction',
'img_norm_cfg', 'border'),
meta_keys=('filename', 'ori_filename', 'ori_shape',
'img_shape', 'pad_shape', 'scale_factor', 'flip',
'flip_direction', 'img_norm_cfg', 'border'),
keys=['img'])
])
]

Loading…
Cancel
Save