Spaces:
Sleeping
Sleeping
Commit
·
7112744
1
Parent(s):
a5a58a3
Add explainer text and image
Browse files
app.py
CHANGED
@@ -200,8 +200,17 @@ with gr.Blocks() as demo:
|
|
200 |
## Interactive demo: Raising the Cost of Malicious AI-Powered Image Editing
|
201 |
""")
|
202 |
gr.HTML('''
|
203 |
-
<p style="margin-bottom: 10px; font-size: 94%">This is an unofficial demo for Photoguard, which is an approach to
|
204 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
205 |
|
206 |
with gr.Column():
|
207 |
with gr.Tab("Simple Image to Image"):
|
|
|
200 |
## Interactive demo: Raising the Cost of Malicious AI-Powered Image Editing
|
201 |
""")
|
202 |
gr.HTML('''
|
203 |
+
<p style="margin-bottom: 10px; font-size: 94%">This is an unofficial demo for Photoguard, which is an approach to safeguarding images against manipulation by ML-powered photo-editing models such as stable diffusion through immunization of images. The demo is based on the <a href='https://github.com/MadryLab/photoguard' style='text-decoration: underline;' target='_blank'> Github </a> implementation provided by the authors.</p>
|
204 |
+
''')
|
205 |
+
gr.HTML('''
|
206 |
+
<img src="https://github.com/MadryLab/photoguard/blob/main/assets/hero_fig.PNG" style="width:40%" >
|
207 |
+
''')
|
208 |
+
gr.HTML('''
|
209 |
+
<p style="margin-bottom: 10px; font-size: 94%"> A malevolent actor might download
|
210 |
+
photos of people posted online and edit them maliciously using an off-the-shelf diffusion model. The adversary
|
211 |
+
describes via a textual prompt the desired changes and then uses a diffusion model to generate a realistic
|
212 |
+
image that matches the prompt (similar to the top row in the image). By immunizing the original image before the adversary can access it,
|
213 |
+
we disrupt their ability to successfully perform such edits forcing them to generate unrealistic images (similar to the bottom row in the image). For a more detailed explanation, please read the accompanying <a href='https://arxiv.org/abs/2302.06588' style='text-decoration: underline;' target='_blank'> Paper </a> or <a href='https://gradientscience.org/photoguard/' style='text-decoration: underline;' target='_blank'> Blogpost </a>
|
214 |
|
215 |
with gr.Column():
|
216 |
with gr.Tab("Simple Image to Image"):
|