Skip to content

Commit ef3bb2d

Browse files
authored
Merge branch 'main' into dev_1.15.2
2 parents e84835f + 818b50e commit ef3bb2d

9 files changed

+32977
-2985
lines changed

README-cn.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
</p>
55
<br />
66

7-
![Continuous Integration](https://github.com/Trusted-AI/adversarial-robustness-toolbox/workflows/Continuous%20Integration/badge.svg)
87
![CodeQL](https://github.com/Trusted-AI/adversarial-robustness-toolbox/workflows/CodeQL/badge.svg)
98
[![Documentation Status](https://readthedocs.org/projects/adversarial-robustness-toolbox/badge/?version=latest)](http://adversarial-robustness-toolbox.readthedocs.io/en/latest/?badge=latest)
109
[![PyPI](https://badge.fury.io/py/adversarial-robustness-toolbox.svg)](https://badge.fury.io/py/adversarial-robustness-toolbox)
@@ -13,8 +12,8 @@
1312
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
1413
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/adversarial-robustness-toolbox)](https://pypi.org/project/adversarial-robustness-toolbox/)
1514
[![slack-img](https://img.shields.io/badge/chat-on%20slack-yellow.svg)](https://ibm-art.slack.com/)
16-
[![Downloads](https://pepy.tech/badge/adversarial-robustness-toolbox)](https://pepy.tech/project/adversarial-robustness-toolbox)
17-
[![Downloads](https://pepy.tech/badge/adversarial-robustness-toolbox/month)](https://pepy.tech/project/adversarial-robustness-toolbox)
15+
[![Downloads](https://static.pepy.tech/badge/adversarial-robustness-toolbox)](https://pepy.tech/project/adversarial-robustness-toolbox)
16+
[![Downloads](https://static.pepy.tech/badge/adversarial-robustness-toolbox/month)](https://pepy.tech/project/adversarial-robustness-toolbox)
1817
[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/5090/badge)](https://bestpractices.coreinfrastructure.org/projects/5090)
1918

2019
<p align="center">

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
</p>
55
<br />
66

7-
![Continuous Integration](https://github.com/Trusted-AI/adversarial-robustness-toolbox/workflows/Continuous%20Integration/badge.svg)
87
![CodeQL](https://github.com/Trusted-AI/adversarial-robustness-toolbox/workflows/CodeQL/badge.svg)
98
[![Documentation Status](https://readthedocs.org/projects/adversarial-robustness-toolbox/badge/?version=latest)](http://adversarial-robustness-toolbox.readthedocs.io/en/latest/?badge=latest)
109
[![PyPI](https://badge.fury.io/py/adversarial-robustness-toolbox.svg)](https://badge.fury.io/py/adversarial-robustness-toolbox)
@@ -13,8 +12,8 @@
1312
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
1413
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/adversarial-robustness-toolbox)](https://pypi.org/project/adversarial-robustness-toolbox/)
1514
[![slack-img](https://img.shields.io/badge/chat-on%20slack-yellow.svg)](https://ibm-art.slack.com/)
16-
[![Downloads](https://pepy.tech/badge/adversarial-robustness-toolbox)](https://pepy.tech/project/adversarial-robustness-toolbox)
17-
[![Downloads](https://pepy.tech/badge/adversarial-robustness-toolbox/month)](https://pepy.tech/project/adversarial-robustness-toolbox)
15+
[![Downloads](https://static.pepy.tech/badge/adversarial-robustness-toolbox)](https://pepy.tech/project/adversarial-robustness-toolbox)
16+
[![Downloads](https://static.pepy.tech/badge/adversarial-robustness-toolbox/month)](https://pepy.tech/project/adversarial-robustness-toolbox)
1817
[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/5090/badge)](https://bestpractices.coreinfrastructure.org/projects/5090)
1918

2019
[中文README请按此处](README-cn.md)

notebooks/adversarial_retraining.ipynb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"cells": [
33
{
4+
"attachments": {},
45
"cell_type": "markdown",
56
"metadata": {},
67
"source": [
@@ -29,6 +30,10 @@
2930
"source": [
3031
"import warnings\n",
3132
"warnings.filterwarnings('ignore')\n",
33+
"\n",
34+
"import tensorflow as tf\n",
35+
"tf.compat.v1.disable_eager_execution()\n",
36+
"\n",
3237
"from keras.datasets import mnist, cifar10\n",
3338
"from keras.models import load_model\n",
3439
"from keras.utils.np_utils import to_categorical\n",
@@ -41,6 +46,7 @@
4146
]
4247
},
4348
{
49+
"attachments": {},
4450
"cell_type": "markdown",
4551
"metadata": {},
4652
"source": [
@@ -53,6 +59,7 @@
5359
]
5460
},
5561
{
62+
"attachments": {},
5663
"cell_type": "markdown",
5764
"metadata": {},
5865
"source": [
@@ -82,6 +89,7 @@
8289
]
8390
},
8491
{
92+
"attachments": {},
8593
"cell_type": "markdown",
8694
"metadata": {},
8795
"source": [
@@ -101,6 +109,7 @@
101109
]
102110
},
103111
{
112+
"attachments": {},
104113
"cell_type": "markdown",
105114
"metadata": {},
106115
"source": [
@@ -128,6 +137,7 @@
128137
]
129138
},
130139
{
140+
"attachments": {},
131141
"cell_type": "markdown",
132142
"metadata": {},
133143
"source": [
@@ -145,6 +155,7 @@
145155
]
146156
},
147157
{
158+
"attachments": {},
148159
"cell_type": "markdown",
149160
"metadata": {},
150161
"source": [
@@ -173,6 +184,7 @@
173184
]
174185
},
175186
{
187+
"attachments": {},
176188
"cell_type": "markdown",
177189
"metadata": {},
178190
"source": [
@@ -185,6 +197,7 @@
185197
]
186198
},
187199
{
200+
"attachments": {},
188201
"cell_type": "markdown",
189202
"metadata": {},
190203
"source": [
@@ -205,6 +218,7 @@
205218
]
206219
},
207220
{
221+
"attachments": {},
208222
"cell_type": "markdown",
209223
"metadata": {},
210224
"source": [
@@ -224,6 +238,7 @@
224238
]
225239
},
226240
{
241+
"attachments": {},
227242
"cell_type": "markdown",
228243
"metadata": {},
229244
"source": [
@@ -251,6 +266,7 @@
251266
]
252267
},
253268
{
269+
"attachments": {},
254270
"cell_type": "markdown",
255271
"metadata": {},
256272
"source": [
@@ -268,6 +284,7 @@
268284
]
269285
},
270286
{
287+
"attachments": {},
271288
"cell_type": "markdown",
272289
"metadata": {},
273290
"source": [

notebooks/adversarial_training_mnist.ipynb

Lines changed: 20 additions & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)