-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
BadDet Regional Misclassification Attack Implementation #2054
Conversation
Signed-off-by: Farhan Ahmed <Farhan.Ahmed@ibm.com>
Signed-off-by: Farhan Ahmed <Farhan.Ahmed@ibm.com>
Signed-off-by: Farhan Ahmed <Farhan.Ahmed@ibm.com>
Signed-off-by: Farhan Ahmed <Farhan.Ahmed@ibm.com>
Signed-off-by: Farhan Ahmed <Farhan.Ahmed@ibm.com>
Signed-off-by: Farhan Ahmed <Farhan.Ahmed@ibm.com>
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## dev_1.14.0 #2054 +/- ##
==============================================
+ Coverage 85.57% 85.62% +0.04%
==============================================
Files 293 294 +1
Lines 26158 26221 +63
Branches 4733 4744 +11
==============================================
+ Hits 22386 22452 +66
+ Misses 2556 2553 -3
Partials 1216 1216
|
Signed-off-by: Farhan Ahmed <Farhan.Ahmed@ibm.com>
Signed-off-by: Farhan Ahmed <Farhan.Ahmed@ibm.com>
import logging | ||
import os | ||
import numpy as np | ||
import pytest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Separate standard library from third party imports with blank line.
import logging | |
import os | |
import numpy as np | |
import pytest | |
import logging | |
import os | |
import numpy as np | |
import pytest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @f4str Thank you very much for this pull request adding the BadDet Regional Misclassification Attack! I only have found a very, very small item during my review, otherwise the code looks good to me.
Signed-off-by: Farhan Ahmed <Farhan.Ahmed@ibm.com>
Description
Implementation of the BadDet Regional Misclassification Attack. This creates a new poisoning object
art.attacks.poisoning.BadDetRegionalMisclassificationAttack
which is can be used to generate poisoned samples. Since this is the first poisoning attack on object detector models, a new abstract classart.attacks.attack.PoisoningAttackObjectDetector
was created which will serve as the base for all future poisoning attacks on object detectors.Additionally, a demo notebook
notebooks/poisoning_attack_bad_det_rma.ipynb
was created to demonstrate how to use the attack.Paper link: https://arxiv.org/abs/2205.14497
This is a partial implementation of #2038 as the other three attacks need to also be implemented.
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.
BadDetRegionalMisclassificationAttack
which are framework agnosticTest Configuration:
Checklist