Skip to content
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

Update to ART 1.14.0 #2072

Merged
merged 192 commits into from
Mar 17, 2023
Merged

Update to ART 1.14.0 #2072

merged 192 commits into from
Mar 17, 2023

Conversation

beat-buesser
Copy link
Collaborator

This pull request merges the updates of ART 1.14.0 to branch main.

f4str and others added 30 commits December 22, 2022 16:26
Signed-off-by: Farhan Ahmed <[email protected]>
Signed-off-by: abigailt <[email protected]>
Signed-off-by: abigailt <[email protected]>
Signed-off-by: abigailt <[email protected]>
Signed-off-by: abigailt <[email protected]>
Signed-off-by: abigailt <[email protected]>
Signed-off-by: abigailt <[email protected]>
Signed-off-by: abigailt <[email protected]>
…ributeInferenceBaseline attack

Signed-off-by: abigailt <[email protected]>
Signed-off-by: Farhan Ahmed <[email protected]>
Signed-off-by: abigailt <[email protected]>
Signed-off-by: abigailt <[email protected]>
f4str and others added 18 commits March 13, 2023 19:31
Signed-off-by: Farhan Ahmed <[email protected]>
Update supported and tested Python versions
Signed-off-by: GiulioZizzo <[email protected]>
Signed-off-by: GiulioZizzo <[email protected]>
Signed-off-by: Farhan Ahmed <[email protected]>
PyTorch Object Detector Training Implementation and Prediction Update
BadDet Remainder Attacks Implementation
@beat-buesser beat-buesser self-assigned this Mar 16, 2023
@beat-buesser beat-buesser added the release Releases of ART label Mar 16, 2023
@beat-buesser beat-buesser added this to the ART 1.14.0 milestone Mar 16, 2023
@codecov-commenter
Copy link

codecov-commenter commented Mar 16, 2023

Codecov Report

Attention: Patch coverage is 85.83333% with 221 lines in your changes missing coverage. Please review.

Project coverage is 85.63%. Comparing base (18bc68e) to head (1c7bacf).
Report is 1209 commits behind head on main.

Files with missing lines Patch % Lines
art/attacks/evasion/auto_conjugate_gradient.py 86.52% 20 Missing and 23 partials ⚠️
.../defences/trainer/ibp_certified_trainer_pytorch.py 78.16% 15 Missing and 16 partials ⚠️
art/estimators/object_detection/pytorch_yolo.py 72.83% 12 Missing and 10 partials ⚠️
...mators/object_detection/pytorch_object_detector.py 79.72% 8 Missing and 7 partials ⚠️
...attacks/evasion/auto_projected_gradient_descent.py 86.00% 8 Missing and 6 partials ⚠️
...ces/detector/evasion/binary_activation_detector.py 68.42% 7 Missing and 5 partials ⚠️
art/metrics/privacy/membership_leakage.py 84.50% 5 Missing and 6 partials ⚠️
...fences/detector/evasion/subsetscanning/detector.py 84.84% 7 Missing and 3 partials ⚠️
...s/trainer/certified_adversarial_trainer_pytorch.py 77.27% 6 Missing and 4 partials ⚠️
art/estimators/certification/interval/interval.py 78.94% 4 Missing and 4 partials ⚠️
... and 9 more
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2072      +/-   ##
==========================================
+ Coverage   85.44%   85.63%   +0.18%     
==========================================
  Files         290      297       +7     
  Lines       25448    26514    +1066     
  Branches     4576     4867     +291     
==========================================
+ Hits        21745    22704     +959     
- Misses       2536     2572      +36     
- Partials     1167     1238      +71     
Flag Coverage Δ
42.27% <56.12%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
art/attacks/__init__.py 100.00% <100.00%> (ø)
art/attacks/attack.py 92.85% <100.00%> (+0.85%) ⬆️
art/attacks/evasion/__init__.py 98.21% <100.00%> (+0.03%) ⬆️
...acks/inference/attribute_inference/meminf_based.py 86.48% <100.00%> (-0.86%) ⬇️
...nce/attribute_inference/white_box_decision_tree.py 92.85% <100.00%> (+4.48%) ⬆️
...ute_inference/white_box_lifestyle_decision_tree.py 100.00% <100.00%> (+4.54%) ⬆️
...ks/inference/membership_inference/shadow_models.py 93.96% <100.00%> (ø)
art/attacks/poisoning/__init__.py 100.00% <100.00%> (ø)
art/attacks/poisoning/bad_det/bad_det_gma.py 100.00% <100.00%> (ø)
...cks/poisoning/perturbations/image_perturbations.py 93.58% <100.00%> (+3.84%) ⬆️
... and 30 more

... and 6 files with indirect coverage changes

self.count_condition_1 = np.zeros(shape=(_batch_size,))
gradk_1 = np.zeros_like(x_k)
cgradk_1 = np.zeros_like(x_k)
cgradk = np.zeros_like(x_k)

Check warning

Code scanning / CodeQL

Variable defined multiple times

This assignment to 'cgradk' is unnecessary as it is [redefined](1) before this value is used. This assignment to 'cgradk' is unnecessary as it is [redefined](2) before this value is used.
cgradk = np.zeros_like(x_k)
gradk_1_best = np.zeros_like(x_k)
cgradk_1_best = np.zeros_like(x_k)
gradk_1_tmp = np.zeros_like(x_k)

Check warning

Code scanning / CodeQL

Variable defined multiple times

This assignment to 'gradk_1_tmp' is unnecessary as it is [redefined](1) before this value is used.
gradk_1_best = np.zeros_like(x_k)
cgradk_1_best = np.zeros_like(x_k)
gradk_1_tmp = np.zeros_like(x_k)
cgradk_1_tmp = np.zeros_like(x_k)

Check warning

Code scanning / CodeQL

Variable defined multiple times

This assignment to 'cgradk_1_tmp' is unnecessary as it is [redefined](1) before this value is used.
Comment on lines +635 to +636
# if self.loss_type not in self._predefined_losses:
# raise ValueError("The argument loss_type has to be either {}.".format(self._predefined_losses))

Check notice

Code scanning / CodeQL

Commented-out code

This comment appears to contain commented-out code.
ABLATOR_TYPE = Union[BlockAblator, ColumnAblator] # pylint: disable=C0103

CERTIFIER_TYPE = Union[PytorchDeepZ] # pylint: disable=C0103
IBP_CERTIFIER_TYPE = Union[PyTorchIBPClassifier] # pylint: disable=C0103

Check notice

Code scanning / CodeQL

Unused global variable

The global variable 'IBP_CERTIFIER_TYPE' is not used.
@beat-buesser beat-buesser merged commit 4fad9b5 into main Mar 17, 2023
@beat-buesser beat-buesser deleted the dev_1.14.0 branch July 3, 2024 17:49
@beat-buesser beat-buesser restored the dev_1.14.0 branch September 30, 2024 20:26
@beat-buesser beat-buesser deleted the dev_1.14.0 branch October 1, 2024 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release Releases of ART
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants