未验证 提交 bbc132ea 编写于 作者: W Wenyu 提交者: GitHub

repleace letterbox to resize_pad (#6933)

上级 060e79c1
...@@ -33,7 +33,8 @@ TestReader: ...@@ -33,7 +33,8 @@ TestReader:
image_shape: [-1, 3, 640, 640] image_shape: [-1, 3, 640, 640]
sample_transforms: sample_transforms:
- Decode: {} - 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]} - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
- Permute: {} - Permute: {}
batch_size: 1 batch_size: 1
......
...@@ -33,7 +33,8 @@ TestReader: ...@@ -33,7 +33,8 @@ TestReader:
image_shape: [-1, 3, 640, 640] image_shape: [-1, 3, 640, 640]
sample_transforms: sample_transforms:
- Decode: {} - 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]} - NormalizeImage: {is_scale: true, mean: [0.485,0.456,0.406], std: [0.229, 0.224,0.225]}
- Permute: {} - Permute: {}
batch_size: 1 batch_size: 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册