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

Error for MNIST autoEncoder #27

Open
ir1979 opened this issue Jun 12, 2019 · 2 comments
Open

Error for MNIST autoEncoder #27

ir1979 opened this issue Jun 12, 2019 · 2 comments

Comments

@ir1979
Copy link

ir1979 commented Jun 12, 2019

Your file produces Error:
RuntimeError: output with shape [1, 28, 28] doesn't match the broadcast shape [3, 28, 28]

It probably due to the gray-scale image downloaded automatically.

@thunfischtoast
Copy link

The normalize-operation in the transform expects 3 channels. For a gray-scale image with 1 channel change

transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))

to

transforms.Normalize((0.5,), (0.5,))

@Postroggy
Copy link

Lol,the Conv_autoencoder python code is way too too simply and way toto crude

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

3 participants