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

Attack on CIFAR-100 #3

Open
EhanW opened this issue Sep 6, 2024 · 5 comments
Open

Attack on CIFAR-100 #3

EhanW opened this issue Sep 6, 2024 · 5 comments

Comments

@EhanW
Copy link

EhanW commented Sep 6, 2024

Hi, sir! I found that the poisoned images generated for one class (class 9) in CIFAR-100 are completely black. What could be the reason for this?

@psandovalsegura
Copy link
Owner

psandovalsegura commented Sep 7, 2024

Can you specify which file from the Google Drive? I'm assuming it's ar-cifar-100.zip but I want to make sure. I uploaded the AR processes for 100 classes in params-classes-100-mr-3.pt, so let me check if there was any issue with those.

@EhanW
Copy link
Author

EhanW commented Sep 7, 2024

yes, ar-cifar-100.zip

@psandovalsegura
Copy link
Owner

psandovalsegura commented Sep 7, 2024

Using Generate-AR-Perturbations-from-Coefficients.ipynb I checked params-classes-100-mr-3.pt and it does look like the AR process at index 9 returns nan values.

I've committed (424cc2e) a new copy of params-classes-100-mr-3.pt which you should be able to see generates correct AR perturbations using the notebook above. I also added a check to the param finder to prevent this for new AR process param searches.

You should now be able to regenerate the CIFAR-100 poison using python create_ar_poisons_3channel.py ar-cifar-100 CIFAR100 --epsilon 1.0 --p_norm 2 or if you want I will generate and reupload to the Google Drive. I'll update here when that's done.

@psandovalsegura
Copy link
Owner

@EhanW A fixed CIFAR-100 poison (ar-cifar-100.zip) is now in the Google Drive. I've also uploaded a notebook which checks that class 9 is now ok: Check-CIFAR100-Perturbations.ipynb.

Let me know if this helped!

@EhanW
Copy link
Author

EhanW commented Sep 9, 2024

Thanks a lot!

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