Farazquraishi commited on
Commit
1271615
β€’
1 Parent(s): e88171f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -21
app.py CHANGED
@@ -178,24 +178,6 @@ def run_inference(target, source, slider, adv_slider, settings):
178
  return None
179
 
180
 
181
- description = "Performs subject agnostic identity transfer from a source face to all target faces. \n\n" \
182
- "Implementation and demo of FaceDancer, accepted to WACV 2023. \n\n" \
183
- "Pre-print: https://arxiv.org/abs/2210.10473 \n\n" \
184
- "Code: https://github.com/felixrosberg/FaceDancer \n\n" \
185
- "\n\n" \
186
- "Options:\n\n" \
187
- "-Compare returns the target image concatenated with the results.\n\n" \
188
- "-Anonymize will ignore the source image and perform an identity permutation of target faces.\n\n" \
189
- "-Reconstruction attack will attempt to invert the face swap or the anonymization.\n\n" \
190
- "-Adversarial defense will add a permutation noise that disrupts the reconstruction attack.\n\n" \
191
- "NOTE: There is no guarantees with the anonymization process currently.\n\n" \
192
- "NOTE: source image with too high resolution may not work properly!"
193
- examples = [["assets/rick.jpg", "assets/musk.jpg", 100, 10, ["compare"]],
194
- ["assets/musk.jpg", "assets/musk.jpg", 100, 10, ["anonymize"]]]
195
- article = """
196
- Demo is based of recent research from my Ph.D work. Results expects to be published in the coming months.
197
- """
198
-
199
  iface = gradio.Interface(run_inference,
200
  [gradio.Image(shape=None, type="pil", label='Target'),
201
  gradio.Image(shape=None, type="pil", label='Source'),
@@ -208,8 +190,5 @@ iface = gradio.Interface(run_inference,
208
  label='Options')],
209
  "image",
210
  title="Face Swap",
211
- description=description,
212
- examples=examples,
213
- article=article,
214
  layout="vertical")
215
  iface.launch()
 
178
  return None
179
 
180
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
181
  iface = gradio.Interface(run_inference,
182
  [gradio.Image(shape=None, type="pil", label='Target'),
183
  gradio.Image(shape=None, type="pil", label='Source'),
 
190
  label='Options')],
191
  "image",
192
  title="Face Swap",
 
 
 
193
  layout="vertical")
194
  iface.launch()