Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mnist why 32x32 and not 28x28 #48

Open
Cadene opened this issue Jun 17, 2016 · 1 comment
Open

Mnist why 32x32 and not 28x28 #48

Cadene opened this issue Jun 17, 2016 · 1 comment

Comments

@Cadene
Copy link

Cadene commented Jun 17, 2016

Hello there,

I don't understand why the dataset MNIST from Torch Tutorial dataset MNIST is made of 32x32 images instead of 28x28 as in the original dataset.

Do I have to crop the images using narrow ?

Thanks

@chengzhishi
Copy link

chengzhishi commented Aug 19, 2019

Here is an explanation I found A Tensorflow Tutorial:
The MNIST dataset contains vectorized images of 28X28. Therefore we define a new function to reshape each batch of MNIST images to 28X28 and then resize to 32X32. The reason of resizing to 32X32 is to make it a power of two and therefore we can easily use the stride of 2 for downsampling and upsampling.

Hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants