-
Notifications
You must be signed in to change notification settings - Fork 350
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
CW attack doesn't work.maybe i don't know how to run correctly. help me #5
Comments
Please let me know the error situation. |
Sir, I also encounter this issue, I found when I use the parameters default in your code, the success rate of adversarial attack is close to 0. Cause I do not check the original paper about C&W, so I am not sure how to do. Can you help me ? @Harry24k |
With default c, you can't easily get adversarial images. Set higher c like 1. I also used |
Ok, I will try it now 1137582789 Email:1137582789@qq.com Signature is customized by Netease Mail Master On 07/30/2020 22:04, Harry Kim wrote: Sir, I also encounter this issue, I found when I use the parameters default in your code, the success rate of adversarial attack is close to 0. Cause I do not check the original paper about C&W, so I am not sure how to do. Can you help me ? @Harry24k With default c, you can't easily get adversarial images. Set higher c like 1. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
|
set c like 1, I tried, but the code doesn't work too.I also check the souce code, i found the source code are not wrong.So i dont know where is wrong. |
I found, set c to 10 or up(1 is not enough), CW attack can changed image to adversarial image with high success rate |
Let me try, thanks for your precious experience! @xieshisheng |
By the way, sir, how do you set iters and lr? @xieshisheng |
I dont change iters and lr. |
I cannot agree with you any more. But I think the iteration maybe to large...... 1137582789 Email:1137582789@qq.com Signature is customized by Netease Mail Master On 07/31/2020 10:05, xieshisheng wrote: I dont change iters and lr. source code "loss1 = nn.MSELoss(reduction='sum')(a, images) loss2 = torch.sum(self.c*f(a))" i think MSEELoss force new image as same as old image, if c is small ,gradient of loss2 is small . So the "adversarial" image is just as same as image, but not truly adversarial image. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
|
hhhhh, maybe large iteration is more effective.I‘ll try it later.thank you |
thanks too! 1137582789 Email:1137582789@qq.com Signature is customized by Netease Mail Master On 07/31/2020 10:31, xieshisheng wrote: hhhhh, maybe large iteration is more effective.I‘ll try it later.thank you — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
|
No description provided.
The text was updated successfully, but these errors were encountered: