Linoy Tsaban
commited on
Commit
•
ffe201d
1
Parent(s):
1ff3548
Update app.py
Browse files
app.py
CHANGED
@@ -96,8 +96,8 @@ 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:
|
101 |
Edit Friendly DDPM X Semantic Guidance: Editing Real Images
|
102 |
</h1>
|
103 |
<p style="font-size: 0.9rem; margin: 0rem; line-height: 1.2em; margin-top:1em">
|
@@ -120,7 +120,7 @@ with gr.Blocks() as demo:
|
|
120 |
|
121 |
with gr.Row():
|
122 |
with gr.Column(scale=1, min_width=100):
|
123 |
-
generate_button = gr.Button("
|
124 |
# with gr.Column(scale=1, min_width=100):
|
125 |
# reset_button = gr.Button("Reset")
|
126 |
# with gr.Column(scale=3):
|
@@ -134,17 +134,20 @@ with gr.Blocks() as demo:
|
|
134 |
|
135 |
# with gr.Row():
|
136 |
with gr.Accordion("Advanced Options"):
|
137 |
-
|
138 |
-
|
|
|
139 |
# src_cfg_scale = gr.Number(value=3.5, label=f"Source CFG", interactive=True)
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
|
|
|
|
148 |
|
149 |
# gr.Markdown(help_text)
|
150 |
|
|
|
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>
|
103 |
<p style="font-size: 0.9rem; margin: 0rem; line-height: 1.2em; margin-top:1em">
|
|
|
120 |
|
121 |
with gr.Row():
|
122 |
with gr.Column(scale=1, min_width=100):
|
123 |
+
generate_button = gr.Button("Run")
|
124 |
# with gr.Column(scale=1, min_width=100):
|
125 |
# reset_button = gr.Button("Reset")
|
126 |
# with gr.Column(scale=3):
|
|
|
134 |
|
135 |
# with gr.Row():
|
136 |
with gr.Accordion("Advanced Options"):
|
137 |
+
with gr.Column(scale=1, min_width=100):
|
138 |
+
#inversion
|
139 |
+
steps = gr.Number(value=100, precision=0, label="Num Diffusion Steps", interactive=True)
|
140 |
# src_cfg_scale = gr.Number(value=3.5, label=f"Source CFG", interactive=True)
|
141 |
+
with gr.Column(scale=1, min_width=100):
|
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 |
+
with gr.Column(scale=1, min_width=100):
|
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 |
|