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: 'MyMNIST' object has no attribute 'targets #2

Open
BehzadBozorgtabar opened this issue Nov 20, 2019 · 2 comments
Open

Comments

@BehzadBozorgtabar
Copy link

I faced with an issue with reading dataset:

File "/SVDD/Deep-SAD-PyTorch/src/datasets/mnist.py", line 66, in init
self.semi_targets = torch.zeros_like(self.targets)
AttributeError: 'MyMNIST' object has no attribute 'targets

Any hint?

@licheng0794
Copy link

I have the same issue. Any solution? @lukasruff

@licheng0794
Copy link

I have the same issue. Any solution? @lukasruff

I guess it is the issue of torch version. It is ok when I am using torch==1.5.0

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