CNN - Image Resizing VS Padding (keeping aspect ratio or not?)
问题 While usually people tend to simply resize any image into a square while training a CNN (for example resnet takes a 224x224 square image), that looks ugly to me, especially when the aspect ratio is not around 1. (In fact that might change ground truth eg the label that an expert might give the distorted image could be different than the original one). So now I resize the image to,say, 224x160 , keeping the original ratio, and then I pad the image with 0s (paste it into a random location in a