PatrykChrabaszcz / Imagenet32_Scripts

Scripts for Imagenet 32 dataset
MIT License
150 stars 47 forks source link

Aspect ratio #3

Closed ciw-ws closed 6 years ago

ciw-ws commented 6 years ago

Thanks for your great work. I've found that aspect ratio is changed in this work. Is there a reason of why this is different to general ImageNet preprocessing? (center crop to keep the aspect ratio)

PatrykChrabaszcz commented 6 years ago

Hi @ciw-ws

Yes, we change the aspect ratio of images. As far as I know, on the original ImageNet dataset, people usually apply random cropping as a form of data augmentation when they train their networks.

In general, we could extract crops from the center of the image. We could also apply any other preprocessing pipeline. I believe that for each potential preprocessing pipeline there are multiple arguments to support it. I guess that the best way, but also with a high computational demand, would be to take the original ImageNet dataset and implement on-line resizing procedure as a part of the input preprocessing step with some random components.

In our dataset, we decided to resize full images for couple of reasons: