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
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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_pctExpected behavior
The
Augmented 1-5image 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.jpgoutput_image.jpgDesktop (please complete the following information):
Beta Was this translation helpful? Give feedback.
All reactions