Linoy Tsaban
commited on
Commit
·
448a301
1
Parent(s):
50838df
Update app.py
Browse files
app.py
CHANGED
|
@@ -96,7 +96,6 @@ def edit(input_image,
|
|
| 96 |
|
| 97 |
# demo
|
| 98 |
intro = """
|
| 99 |
-
# <div style="text-align: center; max-width: 1200px; margin: 20px auto;">
|
| 100 |
<h1 style="font-weight: 1200; text-align: center; margin-bottom: 7px;">
|
| 101 |
Edit Friendly DDPM X Semantic Guidance: Editing Real Images
|
| 102 |
</h1>
|
|
@@ -134,20 +133,20 @@ with gr.Blocks() as demo:
|
|
| 134 |
|
| 135 |
# with gr.Row():
|
| 136 |
with gr.Accordion("Advanced Options"):
|
| 137 |
-
with gr.
|
| 138 |
#inversion
|
| 139 |
steps = gr.Number(value=100, precision=0, label="Num Diffusion Steps", interactive=True)
|
| 140 |
-
|
| 141 |
-
|
| 142 |
# reconstruction
|
| 143 |
skip = gr.Number(value=36, precision=0, label="Skip Steps", interactive=True)
|
| 144 |
tar_cfg_scale = gr.Number(value=15, label=f"Guidance Scale", interactive=True)
|
| 145 |
-
|
| 146 |
# edit
|
| 147 |
sega_edit_guidance = gr.Number(value=5, label=f"SEGA Edit Guidance Scale", interactive=True)
|
| 148 |
warm_up = gr.Number(value=5, label=f"SEGA Warm-up Steps", interactive=True)
|
| 149 |
neg_guidance = gr.Checkbox(label="SEGA Negative Guidance")
|
| 150 |
-
|
| 151 |
|
| 152 |
# gr.Markdown(help_text)
|
| 153 |
|
|
|
|
| 96 |
|
| 97 |
# demo
|
| 98 |
intro = """
|
|
|
|
| 99 |
<h1 style="font-weight: 1200; text-align: center; margin-bottom: 7px;">
|
| 100 |
Edit Friendly DDPM X Semantic Guidance: Editing Real Images
|
| 101 |
</h1>
|
|
|
|
| 133 |
|
| 134 |
# with gr.Row():
|
| 135 |
with gr.Accordion("Advanced Options"):
|
| 136 |
+
with gr.Row():
|
| 137 |
#inversion
|
| 138 |
steps = gr.Number(value=100, precision=0, label="Num Diffusion Steps", interactive=True)
|
| 139 |
+
# src_cfg_scale = gr.Number(value=3.5, label=f"Source CFG", interactive=True)
|
| 140 |
+
|
| 141 |
# reconstruction
|
| 142 |
skip = gr.Number(value=36, precision=0, label="Skip Steps", interactive=True)
|
| 143 |
tar_cfg_scale = gr.Number(value=15, label=f"Guidance Scale", interactive=True)
|
| 144 |
+
|
| 145 |
# edit
|
| 146 |
sega_edit_guidance = gr.Number(value=5, label=f"SEGA Edit Guidance Scale", interactive=True)
|
| 147 |
warm_up = gr.Number(value=5, label=f"SEGA Warm-up Steps", interactive=True)
|
| 148 |
neg_guidance = gr.Checkbox(label="SEGA Negative Guidance")
|
| 149 |
+
|
| 150 |
|
| 151 |
# gr.Markdown(help_text)
|
| 152 |
|