-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Added support for GREAT Score [NIPS-2024] #2527
base: dev_1.20.0
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev_1.19.0 #2527 +/- ##
==============================================
- Coverage 53.38% 53.17% -0.21%
==============================================
Files 658 670 +12
Lines 60292 61978 +1686
Branches 10274 10523 +249
==============================================
+ Hits 32186 32956 +770
- Misses 26450 27325 +875
- Partials 1656 1697 +41
|
|
||
import numpy as np | ||
import torch | ||
from torch.autograd import Variable |
Check notice
Code scanning / CodeQL
Unused import Note
great_scores = [] | ||
for i in range(len(samples)): | ||
if correct_predictions[i]: | ||
predicted_label = predicted_labels[i] |
Check notice
Code scanning / CodeQL
Unused local variable Note
# SOFTWARE. | ||
|
||
from art.defences.evaluation.evasion import great_score | ||
import numpy as np |
Check notice
Code scanning / CodeQL
Unused import Note
Description
This pull request adds the support of the BEYOND Detection method proposed in [1].
[1] GREAT Score: Global Robustness Evaluation of Adversarial Perturbation using Generative Models. Paper
Type of change
Please check all relevant options.
Testing
Please describe the tests that you ran to verify your changes. Consider listing any relevant details of your test configuration.
Test Configuration:
Checklist