diff --git a/configs/faster_rcnn/_base_/faster_rcnn_swin_reader.yml b/configs/faster_rcnn/_base_/faster_rcnn_swin_reader.yml index 1af6175a931a571f1c6726f0f312591c07489d1d..ce38f0d494e7e0d3c7a1613d15573d165b0edf25 100644 --- a/configs/faster_rcnn/_base_/faster_rcnn_swin_reader.yml +++ b/configs/faster_rcnn/_base_/faster_rcnn_swin_reader.yml @@ -33,7 +33,8 @@ TestReader: image_shape: [-1, 3, 640, 640] sample_transforms: - Decode: {} - - LetterBoxResize: {target_size: 640} + - Resize: {interp: 2, target_size: 640, keep_ratio: True} + - Pad: {size: 640} - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]} - Permute: {} batch_size: 1 diff --git a/configs/vitdet/_base_/reader.yml b/configs/vitdet/_base_/reader.yml index 1af6175a931a571f1c6726f0f312591c07489d1d..ce38f0d494e7e0d3c7a1613d15573d165b0edf25 100644 --- a/configs/vitdet/_base_/reader.yml +++ b/configs/vitdet/_base_/reader.yml @@ -33,7 +33,8 @@ TestReader: image_shape: [-1, 3, 640, 640] sample_transforms: - Decode: {} - - LetterBoxResize: {target_size: 640} + - Resize: {interp: 2, target_size: 640, keep_ratio: True} + - Pad: {size: 640} - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]} - Permute: {} batch_size: 1