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

A problem when training model on ImageNetMini #5

Closed
czb2133 opened this issue Oct 28, 2021 · 1 comment
Closed

A problem when training model on ImageNetMini #5

czb2133 opened this issue Oct 28, 2021 · 1 comment

Comments

@czb2133
Copy link

czb2133 commented Oct 28, 2021

Thanks for releasing the code.
I found that you are using cls_id to choose the sample-wise noise from perturb_tensor. Should I change cls_id to the data index of the dataloader to choose the sample-wise noise from perturb_tensor?

@HanxunH
Copy link
Owner

HanxunH commented Oct 28, 2021

This may depend on how the noise is generated. I'm not sure what do you mean by using cls_id to choose the sample-wise noise from perturb_tensor.

In ImageNetMini class, I used the cls_id to select the first 100 classes, and use this dataset to generate the noise (perturb_tensor). So the perturb_tensor only contains the noises for images of the first 100 classes. When the noise is applied to the data, the perturbed dataset inherits from ImageNetMini class, the ordering should be the same with the perturb_tensor.

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