From fe6f3c654536abe49d39826e41a53020ecb934b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Haian=20Huang=28=E6=B7=B1=E5=BA=A6=E7=9C=B8=29?= <1286304229@qq.com> Date: Wed, 17 May 2023 18:06:25 +0800 Subject: [PATCH] Fix RTMDet miss `LoadAnnotations` bug in test_pipeline (#10348) --- configs/rtmdet/rtmdet_l_8xb32-300e_coco.py | 1 + configs/rtmdet/rtmdet_tta.py | 1 + 2 files changed, 2 insertions(+) diff --git a/configs/rtmdet/rtmdet_l_8xb32-300e_coco.py b/configs/rtmdet/rtmdet_l_8xb32-300e_coco.py index e4c46aadbda..1cce4d89c84 100644 --- a/configs/rtmdet/rtmdet_l_8xb32-300e_coco.py +++ b/configs/rtmdet/rtmdet_l_8xb32-300e_coco.py @@ -102,6 +102,7 @@ dict(type='LoadImageFromFile', backend_args={{_base_.backend_args}}), dict(type='Resize', scale=(640, 640), keep_ratio=True), dict(type='Pad', size=(640, 640), pad_val=dict(img=(114, 114, 114))), + dict(type='LoadAnnotations', with_bbox=True), dict( type='PackDetInputs', meta_keys=('img_id', 'img_path', 'ori_shape', 'img_shape', diff --git a/configs/rtmdet/rtmdet_tta.py b/configs/rtmdet/rtmdet_tta.py index f7adcbc712a..6dde36de3ff 100644 --- a/configs/rtmdet/rtmdet_tta.py +++ b/configs/rtmdet/rtmdet_tta.py @@ -25,6 +25,7 @@ size=(960, 960), pad_val=dict(img=(114, 114, 114))), ], + [dict(type='LoadAnnotations', with_bbox=True)], [ dict( type='PackDetInputs',