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

About n_iter, to align with others #106

Closed
userElaina opened this issue May 16, 2024 · 4 comments
Closed

About n_iter, to align with others #106

userElaina opened this issue May 16, 2024 · 4 comments

Comments

@userElaina
Copy link

Hi! Thank you for your work and code!

In this algorithm, the number of iterations is "free". To align with other algorithms (like PGD, CW), I want to modify the number of iterations in this algorithm.

Is there any guide for that?

Or, I tried editing n_iter=xxx directly in autoattack/autoattack.py (commit d2551ea in my fork). Will this seriously break the algorithm?

@ScarlettChan
Copy link

ScarlettChan commented May 16, 2024 via email

@fra31
Copy link
Owner

fra31 commented May 16, 2024

Hi,

your solution should work fine. If you (largely) change the number of queries in Square Attack, you might want to set resc_schedule=True. Please note the performance might vary if you significantly reduce the number of iterations (especially for the black-box Square Attack).

@userElaina
Copy link
Author

OK, thank you for your reply.

@ScarlettChan
Copy link

ScarlettChan commented Jun 11, 2024 via email

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

3 participants