File tree Expand file tree Collapse file tree 7 files changed +19
-10
lines changed
estimators/object_detection Expand file tree Collapse file tree 7 files changed +19
-10
lines changed Original file line number Diff line number Diff line change 3535 with :
3636 images : adversarialrobustnesstoolbox/releases
3737 tags : |
38- type=raw,value={{branch}}-1.12.0 -{{sha}}
38+ type=raw,value={{branch}}-1.12.1 -{{sha}}
3939 type=semver,pattern={{version}}
4040
4141 - name : Build and push Docker image
Original file line number Diff line number Diff line change 1212from art import preprocessing
1313
1414# Semantic Version
15- __version__ = "1.12.0 "
15+ __version__ = "1.12.1 "
1616
1717# pylint: disable=C0103
1818
Original file line number Diff line number Diff line change 11"""
22Module providing evasion attacks under a common interface.
33"""
4+ # pylint: disable=C0413
5+ import importlib
6+
47from art .attacks .evasion .adversarial_patch .adversarial_patch import AdversarialPatch
58from art .attacks .evasion .adversarial_patch .adversarial_patch_numpy import AdversarialPatchNumpy
69from art .attacks .evasion .adversarial_patch .adversarial_patch_tensorflow import AdversarialPatchTensorFlowV2
912from art .attacks .evasion .adversarial_asr import CarliniWagnerASR
1013from art .attacks .evasion .auto_attack import AutoAttack
1114from art .attacks .evasion .auto_projected_gradient_descent import AutoProjectedGradientDescent
12- from art .attacks .evasion .brendel_bethge import BrendelBethgeAttack
15+
16+ if importlib .util .find_spec ("numba" ) is not None :
17+ from art .attacks .evasion .brendel_bethge import BrendelBethgeAttack
18+
1319from art .attacks .evasion .boundary import BoundaryAttack
1420from art .attacks .evasion .carlini import CarliniL2Method , CarliniLInfMethod , CarliniL0Method
1521from art .attacks .evasion .decision_tree_attack import DecisionTreeAttack
Original file line number Diff line number Diff line change @@ -253,6 +253,8 @@ def _get_losses(
253253 import torch # lgtm [py/repeated-import]
254254
255255 self ._model .train ()
256+ self .set_batchnorm (train = False )
257+ self .set_dropout (train = False )
256258
257259 # Apply preprocessing
258260 if self .all_framework_preprocessing :
Original file line number Diff line number Diff line change 2727# The short X.Y version
2828version = "1.12"
2929# The full version, including alpha/beta/rc tags
30- release = "1.12.0 "
30+ release = "1.12.1 "
3131
3232
3333# -- General configuration ---------------------------------------------------
Original file line number Diff line number Diff line change @@ -34,15 +34,15 @@ torch==1.12.1
3434torchaudio==0.12.1+cpu
3535torchvision==0.13.1+cpu
3636
37- catboost==1.0.6
37+ catboost==1.1
3838GPy==1.10.0
3939lightgbm==3.3.2
4040xgboost==1.6.2
4141
4242kornia~=0.6.7
4343tensorboardX==2.5.1
44- lief==0.12.1
45- jax[cpu]==0.3.17
44+ lief==0.12.2
45+ jax[cpu]==0.3.21
4646
4747# Lingvo ASR dependencies
4848# supported versions: (lingvo==0.6.4 with tensorflow-gpu==2.1.0)
@@ -54,8 +54,8 @@ jax[cpu]==0.3.17
5454pytest~=7.1.3
5555pytest-flake8~=1.1.1
5656flake8~=4.0.1
57- pytest-mock~=3.8.2
58- pytest-cov~=3 .0.0
57+ pytest-mock~=3.9.0
58+ pytest-cov~=4 .0.0
5959codecov~=2.1.12
6060requests~=2.28.1
6161
Original file line number Diff line number Diff line change 1313 "six" ,
1414 "setuptools" ,
1515 "tqdm" ,
16- "numba>=0.53.1" ,
1716]
1817
1918docs_require = [
@@ -93,6 +92,7 @@ def get_version(rel_path):
9392 "cma" ,
9493 "librosa" ,
9594 "opencv-python" ,
95+ "numba" ,
9696 ],
9797 "non_framework" : [
9898 "matplotlib" ,
@@ -112,6 +112,7 @@ def get_version(rel_path):
112112 "codecov" ,
113113 "requests" ,
114114 "sortedcontainers" ,
115+ "numba" ,
115116 ],
116117 },
117118 classifiers = [
You can’t perform that action at this time.
0 commit comments