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

AttributeError: 'GalaxyMNIST' object has no attribute 'data' #1

Closed
spdc-elm opened this issue Apr 15, 2022 · 3 comments
Closed

AttributeError: 'GalaxyMNIST' object has no attribute 'data' #1

spdc-elm opened this issue Apr 15, 2022 · 3 comments

Comments

@spdc-elm
Copy link

I have ran the python file "load_in_pytorch.py" with the following settings.(I have finished downloaded the file already)
2022-04-15 21-22-45 的屏幕截图

2022-04-15 21-21-09 的屏幕截图
However, there was a bug.
2022-04-15 21-23-36 的屏幕截图
I've check the file galaxy_mnist.py, and had no idea about why such a bug would happen.
Can you help me? Thanks!

Environment: Ubuntu LTS 20.04, python3.7.11,pytorch 1.11.0

@mwalmsley
Copy link
Owner

mwalmsley commented Apr 15, 2022 via email

@spdc-elm
Copy link
Author

Well, I have checked my torchvision version(0.2.1). I installed it by conda before and I have no idea why it was so old. Now I've downloaded a new one(0.12.0) and run load_in_pytorch.py" again.
2022-04-29 21-08-44 的屏幕截图

Problem was solved. Thanks!
BTW, I am sorry for typing this comment so late because something important interrupted me.

@mwalmsley
Copy link
Owner

mwalmsley commented Apr 29, 2022 via email

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