Replies: 1 comment 1 reply
-
@shunmian that's not augmentation, that's expected (default) center cropping. The transforms output a constant image size, it defaults to square unless you provide a different size tuple. You input a non-square image it resizes the shortest size to 224 and then crops center to output 224 x 224. This is the default preprocessing expected for most models. Note the scale/ratio args are for training random resize & crop and don't impact things when If you want the whole image you can specificy |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
When disable all data augmentation, it results in unexpected cropping on original image and lose the key feature of the image.
To Reproduce
I have disabled all data augmentation by setting the below parameters in
create_transform
, especially thescale
,ratio
,crop_pct
Expected behavior
The
Augmented 1-5
image should be same asOriginal Image (Resized)
, especially should include "A", which is an important feature of the input image that should not being cropped off.Screenshots
input_image.jpg
output_image.jpg
Desktop (please complete the following information):
Beta Was this translation helpful? Give feedback.
All reactions