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

single channel images transform error #68

Closed
soumith opened this issue Feb 24, 2017 · 2 comments
Closed

single channel images transform error #68

soumith opened this issue Feb 24, 2017 · 2 comments

Comments

@soumith
Copy link
Member

soumith commented Feb 24, 2017

please add the following after line 78 (the for loop)

            data[i] = transforms.Compose([
                    transforms.ToPILImage(),
                    # Transformations
                    transforms.ToTensor(),
                ])(data[i])

in the MNIST example code (https://github.com/pytorch/examples/blob/master/mnist/main.py) and run it.
Reported by @adithyap

@alykhantejani
Copy link
Contributor

@soumith I don't think this is an issue anymore since #54 was merged?

@fmassa
Copy link
Member

fmassa commented Mar 11, 2017

Yes, I think this is fixed now. Thanks for pointing this out @alykhantejani !

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