From 7bd1ef4a473444048ab9b3a5568971f6fb76e5b6 Mon Sep 17 00:00:00 2001 From: Wenyu Date: Wed, 14 Sep 2022 11:30:22 +0800 Subject: [PATCH] repleace letterbox to resize_pad (#6934) --- configs/faster_rcnn/_base_/faster_rcnn_swin_reader.yml | 3 ++- configs/vitdet/_base_/reader.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/configs/faster_rcnn/_base_/faster_rcnn_swin_reader.yml b/configs/faster_rcnn/_base_/faster_rcnn_swin_reader.yml index 1af6175a9..ce38f0d49 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 1af6175a9..ce38f0d49 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 -- GitLab