Spaces:
Runtime error
Runtime error
Toy Leksut
commited on
Commit
·
c5c2555
1
Parent(s):
5f2b0be
update introduction markdown
Browse files
app.py
CHANGED
@@ -72,9 +72,13 @@ def main():
|
|
72 |
|
73 |
gr.Markdown('''## Generate Adversarial Image with Fast Gradient Sign Method
|
74 |
|
75 |
-
|
|
|
|
|
76 |
|
77 |
-
<code>adv_img = input_img + epsilon * sign(input_img.grad)</code
|
|
|
|
|
78 |
|
79 |
''')
|
80 |
|
|
|
72 |
|
73 |
gr.Markdown('''## Generate Adversarial Image with Fast Gradient Sign Method
|
74 |
|
75 |
+
Fast Gradient Sign Method was introduced in the paper [Explaining and Harnessing Adversarial Examples](https://arxiv.org/abs/1412.6572).
|
76 |
+
|
77 |
+
Given an input image and a neural network, an adversarial image can be generated by applying a small perturbation in the direction of the gradient that maximizes the loss to the input image.
|
78 |
|
79 |
+
<code>adv_img = input_img + epsilon * sign(input_img.grad)</code>.
|
80 |
+
|
81 |
+
The parameter `epsilon` controls the maximum bound of the perturbation.
|
82 |
|
83 |
''')
|
84 |
|