Resize but no crop (or flip)

If you only want resize and no transforms (i.e. you already have squared images but want to train on smaller size) you have to use a little trick to make that work. Not sure this is the best way, maybe someone has a better way?

Basically you have to create a dummy tranform that does nothing in order for the size parameter to work.

1 Like