Deep-SAD-PyTorch icon indicating copy to clipboard operation
Deep-SAD-PyTorch copied to clipboard

AttributeError: 'MyMNIST' object has no attribute 'targets

Open BehzadBozorgtabar opened this issue 6 years ago • 2 comments

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?

BehzadBozorgtabar avatar Nov 20 '19 15:11 BehzadBozorgtabar

I have the same issue. Any solution? @lukasruff

licheng0794 avatar Jun 07 '20 16:06 licheng0794

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

licheng0794 avatar Jun 08 '20 03:06 licheng0794