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

How do we testing on different dataset? #3

Open
ShuuTsubaki opened this issue May 7, 2019 · 0 comments
Open

How do we testing on different dataset? #3

ShuuTsubaki opened this issue May 7, 2019 · 0 comments

Comments

@ShuuTsubaki
Copy link

For example, if we want to test it on imagenet-12, are we going to create a similiar py script likes cifar 10 and make change on the cmd_args and get_data_loders function.
Moreover, I received following output after I want to run !python train.py --label-corrupt-prob=1.0,
Traceback (most recent call last):
File "train.py", line 340, in
main()
File "train.py", line 333, in main
train_loader, val_loader = get_data_loaders(args, shuffle_train=True)
File "train.py", line 81, in get_data_loaders
corrupt_prob=args.label_corrupt_prob),
File "/content/cifar10_data.py", line 25, in init
self.corrupt_labels(corrupt_prob)
File "/content/cifar10_data.py", line 28, in corrupt_labels
labels = np.array(self.train_labels if self.train else self.test_labels)
AttributeError: 'CIFAR10RandomLabels' object has no attribute 'train_labels'

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

1 participant