yahoo/open_nsfw

Why resize to (256, 256) ?

mohanson opened this issue · 2 comments

In deploy.prototxt, the input_param is { shape: { dim: 1 dim: 3 dim: 224 dim: 224 } } but in classify_nsfw.py, images are resized to (256, 256).

@mohanson
In training phase, the image size is 256_256, then random crop size 224_224 to do data augmentation
While in test size, center cropping is uesd to test the image

In this situation, image are resized to 256_256, but caffe only process the center part 224_224

Very thanks and sorry for I didn't take a look in closed issues.