Closed weitianli closed 5 years ago
Thank you @weitianli I'm looking into it.
Hi, @weitianli! Fix is now out, please install from clone for the issue to be solved. Let us know if you encounter any further problems!
@weitianli Normally, with the new version of the attack, an max_iter
value significantly smaller than 1000 should suffice. Before we were using gradient descent with decayed learning rate for minimizing the CWL2 objective, now we are using binary line search which should converge faster and be more stable. Please let us know if you have any issues with determining the right value for this parameter.
Thank you very much! I will try it!
I have a small problem about the max_iter. I found your tutorial code about cw set max_iter is 10. Is it the same effect like Cleverhans tutorial(max_iter=100) or CW(max_iter=1000) original version? Also, I have a small problem about eps in FGSM calculation. Is eps formula in ART is 1*(1/255)? Thank you very much! @mathsinn @ririnicolae
@weitianli What is the problem you encounter with max_iter
in C&W? What about the one on the eps
value in FGSM? I would say the number of iterations is not strictly equivalent to the other implementations, just that in ART a small number of iterations should suffice. The eps
value depends on the data range of your classifier. For example, if your data is normalized between 0 and 1, eps
should also be in that range. If your data is between 0 and 255, eps
can take values up to 255.
I got it. Thank you for your kind response.
Describe the bug I implement a simple resnet9 and want to test cw2 result. All is good when I set max_iter=10. But when I set max_iter=1000 that is same value as cw2 original version. The index error comes.
To Reproduce Steps to reproduce the behavior:
Expected behavior No index error and the result comes out.
System information (please complete the following information):