Skip to content

Commit 7a6eac3

Browse files
authored
Merge branch 'dev_1.15.0' into object-detector-resize
2 parents a698532 + 43d13fc commit 7a6eac3

File tree

5 files changed

+10
-15
lines changed

5 files changed

+10
-15
lines changed

.github/workflows/ci-lingvo.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ jobs:
6161
pip install lingvo==${{ matrix.lingvo }}
6262
pip install tensorflow-addons==0.9.1
6363
pip install model-pruning-google-research==0.0.3
64-
pip install jax[cpu]==0.2.17
6564
pip install h5py==2.10.0
6665
pip install pytest~=7.0.1
6766
pip install pytest-flake8~=1.1.0

art/utils.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,7 +1324,6 @@ def load_nursery(
13241324
path=config.ART_DATA_PATH,
13251325
extract=False,
13261326
url=[
1327-
"https://archive.ics.uci.edu/ml/machine-learning-databases/nursery/nursery.data",
13281327
"https://www.dropbox.com/s/l24hwvkuueor6lp/nursery.data?dl=1",
13291328
],
13301329
)
@@ -1509,7 +1508,6 @@ def get_file(
15091508

15101509
if download:
15111510
logger.info("Downloading data from %s", url)
1512-
error_msg = "URL fetch failure on {}: {} -- {}"
15131511
try:
15141512
for url_i in url_list:
15151513
try:
@@ -1545,13 +1543,9 @@ def progress_bar(blocks: int = 1, block_size: int = 1, total_size: Optional[int]
15451543
urlretrieve(url_i, full_path)
15461544

15471545
except HTTPError as exception: # pragma: no cover
1548-
raise Exception(
1549-
error_msg.format(url_i, exception.code, exception.msg) # type: ignore
1550-
) from HTTPError # type: ignore
1546+
logger.error(url_i, exception)
15511547
except URLError as exception: # pragma: no cover
1552-
raise Exception(
1553-
error_msg.format(url_i, exception.errno, exception.reason) # type: ignore
1554-
) from HTTPError # type: ignore
1548+
logger.error(url_i, exception)
15551549
except (Exception, KeyboardInterrupt): # pragma: no cover
15561550
if os.path.exists(full_path):
15571551
os.remove(full_path)

notebooks/model-stealing-demo.ipynb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,9 @@
3535
"from keras.models import Sequential\n",
3636
"from keras.layers import Dense, Flatten, Conv2D, MaxPooling2D, Flatten, InputLayer, Reshape\n",
3737
"\n",
38-
"from art.classifiers import KerasClassifier\n",
38+
"from art.estimators.classification import KerasClassifier\n",
3939
"\n",
40-
"if tf.executing_eagerly():\n",
41-
" tf.python.framework.ops.disable_eager_execution()"
40+
"tf.compat.v1.disable_eager_execution()"
4241
]
4342
},
4443
{

notebooks/model_inversion_attacks_mnist.ipynb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@
3838
"from art.utils import load_dataset\n",
3939
"\n",
4040
"%matplotlib inline\n",
41-
"import matplotlib.pyplot as plt"
41+
"import matplotlib.pyplot as plt\n",
42+
"\n",
43+
"import tensorflow as tf\n",
44+
"tf.compat.v1.disable_eager_execution()"
4245
]
4346
},
4447
{

requirements_test.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ torchvision==0.14.1+cpu
3737
catboost==1.1.1
3838
GPy==1.10.0
3939
lightgbm==3.3.5
40-
xgboost==1.7.4
40+
xgboost==1.7.5
4141

4242
kornia~=0.6.10
4343
tensorboardX==2.6
@@ -56,7 +56,7 @@ pytest-flake8~=1.1.1
5656
flake8~=4.0.1
5757
pytest-mock~=3.10.0
5858
pytest-cov~=4.0.0
59-
requests~=2.28.2
59+
requests~=2.31.0
6060

6161
# ART
6262
-e .

0 commit comments

Comments
 (0)