Linoy Tsaban commited on
Commit
80cad0f
1 Parent(s): 502c9db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -34
app.py CHANGED
@@ -407,11 +407,11 @@ def swap_visibilities(input_image,
407
 
408
  intro = """
409
  <h1 style="font-weight: 1400; text-align: center; margin-bottom: 7px;">
410
- LEDITS - Pipeline for editing images
411
  </h1>
412
- <h3 style="font-weight: 600; text-align: center;">
413
- Real Image Latent Editing with Edit Friendly DDPM and Semantic Guidance
414
- </h3>
415
  <h4 style="text-align: center; margin-bottom: 7px;">
416
  <a href="https://editing-images-project.hf.space/" style="text-decoration: underline;" target="_blank">Project Page</a> | <a href="https://arxiv.org/abs/2307.00522" style="text-decoration: underline;" target="_blank">ArXiv</a>
417
  </h4>
@@ -421,36 +421,6 @@ intro = """
421
  <img style="margin-top: 0em; margin-bottom: 0em" src="https://bit.ly/3CWLGkA" alt="Duplicate Space"></a>
422
  <p/>"""
423
 
424
- help_text = """
425
- - **Getting Started - edit images with DDPM X SEGA:**
426
-
427
- The are 3 general setting options you can play with -
428
-
429
- 1. **Pure DDPM Edit -** Describe the desired edited output image in detail
430
- 2. **Pure SEGA Edit -** Keep the target prompt empty ***or*** with a description of the original image and add editing concepts for Semantic Gudiance editing
431
- 3. **Combined -** Describe the desired edited output image in detail and add additional SEGA editing concepts on top
432
- - **Getting Started - Tips**
433
-
434
- While the best approach depends on your editing objective and source image, we can layout a few guiding tips to use as a starting point -
435
-
436
- 1. **DDPM** is usually more suited for scene/style changes and major subject changes (for example ) while **SEGA** allows for more fine grained control, changes are more delicate, more suited for adding details (for example facial expressions and attributes, subtle style modifications, object adding/removing)
437
- 2. The more you describe the scene in the target prompt (both the parts and details you wish to keep the same and those you wish to change), the better the result
438
- 3. **Combining DDPM Edit with SEGA -**
439
- Try dividing your editing objective to more significant scene/style/subject changes and detail adding/removing and more moderate changes. Then describe the major changes in a detailed target prompt and add the more fine grained details as SEGA concepts.
440
- 4. **Reconstruction:** Using an empty source prompt + target prompt will lead to a perfect reconstruction
441
- - **Fidelity vs creativity**:
442
-
443
- Bigger values → more fidelity, smaller values → more creativity
444
-
445
- 1. `Skip Steps`
446
- 2. `Warmup` (SEGA)
447
- 3. `Threshold` (SEGA)
448
-
449
- Bigger values → more creativity, smaller values → more fidelity
450
-
451
- 1. `Guidance Scale`
452
- 2. `Concept Guidance Scale` (SEGA)
453
- """
454
 
455
  with gr.Blocks(css="style.css") as demo:
456
  def update_counter(sega_concepts_counter, concept1, concept2, concept3):
 
407
 
408
  intro = """
409
  <h1 style="font-weight: 1400; text-align: center; margin-bottom: 7px;">
410
+ LEDITS++: Limitless Image Editing using Text-to-Image Models
411
  </h1>
412
+ # <h3 style="font-weight: 600; text-align: center;">
413
+ # Real Image Editing with Edit Friendly DDPM and Semantic Guidance
414
+ # </h3>
415
  <h4 style="text-align: center; margin-bottom: 7px;">
416
  <a href="https://editing-images-project.hf.space/" style="text-decoration: underline;" target="_blank">Project Page</a> | <a href="https://arxiv.org/abs/2307.00522" style="text-decoration: underline;" target="_blank">ArXiv</a>
417
  </h4>
 
421
  <img style="margin-top: 0em; margin-bottom: 0em" src="https://bit.ly/3CWLGkA" alt="Duplicate Space"></a>
422
  <p/>"""
423
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
424
 
425
  with gr.Blocks(css="style.css") as demo:
426
  def update_counter(sega_concepts_counter, concept1, concept2, concept3):