-
Notifications
You must be signed in to change notification settings - Fork 68
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
In fact, your SR is 99% only in the case of untargeted attack #1
Comments
Sunshine352
changed the title
In fact, your SR is 1%, not 99% and in the case of untargeted attack
In fact, your SR is 99% only in the case of untargeted attack
Nov 23, 2018
the accuracy of the targeted model toward adversarial examples is 1%,so the attack success rate (SR) is 99%, I think my code is correct.
On 11/23/2018 13:03, Zhaomang Sun wrote:
pred_lab = torch.argmax(target_model(adv_img), 1)
num_correct += torch.sum(pred_lab==test_label, 0)
pred_lab should be equal to targeted label, which is different from ground-truth label
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Oh, it's right. But you test SR in the case of targeted attack? |
In addition, the line 'num_correct += torch.sum(pred_lab==test_label,0)' , pred_lab is the label of adv-image, test_label is the gt-label. Though target_model acc is high enough, the test-acc in test set is not 100%. So you should conduct the adversarial attack in the correct-classification samples among test set. |
No, it's untargeted attack.
On 11/23/2018 16:55, Zhaomang Sun wrote:
Oh, it's right. But you test SR in the case of targeted attack?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: