Spaces:
Runtime error
Runtime error
dalexanderch
commited on
Commit
•
77bae22
1
Parent(s):
eebb69d
Update app.py
Browse files
app.py
CHANGED
@@ -123,6 +123,7 @@ def iterative_least_likely_fgsm_cifar10(image, model, epsilon, alpha, niter, nb_
|
|
123 |
|
124 |
def fn(dataset, attack, epsilon):
|
125 |
epsilon = epsilon/255
|
|
|
126 |
niter = int(min(4 + epsilon*255, 1.25 * epsilon * 255))
|
127 |
nb_classes = 10
|
128 |
classes = ["airplane", "automobile", "bird", "cat", "deer", "dog", "frog", "horse", "ship", "truck"]
|
|
|
123 |
|
124 |
def fn(dataset, attack, epsilon):
|
125 |
epsilon = epsilon/255
|
126 |
+
alpha = 1
|
127 |
niter = int(min(4 + epsilon*255, 1.25 * epsilon * 255))
|
128 |
nb_classes = 10
|
129 |
classes = ["airplane", "automobile", "bird", "cat", "deer", "dog", "frog", "horse", "ship", "truck"]
|