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
Comments
Hi there,
Could you let me know your torchvision version, update torchvision, and see
if that helps?
The .data attribute is from the torchvision mnist superclass. It looks from
your first screenshot like it may have downloaded mnist itself, and this
would also likely be due to having an older torchvision version than
galaxyMNIST assumes.
Mike
…On Fri, 15 Apr 2022, 14:49 spdc-elm, ***@***.***> wrote:
I have ran the python file "load_in_pytorch.py" with the following
settings.(I have finished downloaded the file already)
[image: 2022-04-15 21-22-45 的屏幕截图]
<https://user-images.githubusercontent.com/58126622/163575942-9885aa68-c693-4df7-9dfa-92a4a6bd3eea.png>
[image: 2022-04-15 21-21-09 的屏幕截图]
<https://user-images.githubusercontent.com/58126622/163575789-c4da67c5-7afb-4fed-b68e-a1672d7f7bab.png>
However, there was a bug.
[image: 2022-04-15 21-23-36 的屏幕截图]
<https://user-images.githubusercontent.com/58126622/163576018-6e8ee9f0-5b99-42ef-8d69-2f7f3998f494.png>
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
—
Reply to this email directly, view it on GitHub
<#1>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB3BY3X7XUQBCSOIUV2FUB3VFFXWTANCNFSM5TQPZLHA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
No problem - glad it works for you.
…On Fri, Apr 29, 2022 at 2:13 PM spdc-elm ***@***.***> wrote:
Closed #1 <#1>.
—
Reply to this email directly, view it on GitHub
<#1 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB3BY3S6IQCXHDCO4VBWRTLVHPN73ANCNFSM5TQPZLHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have ran the python file "load_in_pytorch.py" with the following settings.(I have finished downloaded the file already)
However, there was a bug.
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
The text was updated successfully, but these errors were encountered: