Spaces:
Runtime error
Runtime error
Linoy Tsaban
commited on
Commit
•
d58e1aa
1
Parent(s):
05f89f0
Update app.py
Browse files
app.py
CHANGED
@@ -109,8 +109,8 @@ with gr.Blocks() as demo:
|
|
109 |
|
110 |
with gr.Row():
|
111 |
input_image = gr.Image(label="Input Image", interactive=True)
|
112 |
-
ddpm_edited_image = gr.Image(label=f"Reconstructed Image", interactive=False)
|
113 |
-
sega_edited_image = gr.Image(label=f"Edited Image", interactive=False)
|
114 |
input_image.style(height=512, width=512)
|
115 |
ddpm_edited_image.style(height=512, width=512)
|
116 |
sega_edited_image.style(height=512, width=512)
|
@@ -130,14 +130,14 @@ with gr.Blocks() as demo:
|
|
130 |
|
131 |
with gr.Row():
|
132 |
#inversion
|
133 |
-
steps = gr.Number(value=100, precision=0, label="Steps", interactive=True)
|
134 |
# src_cfg_scale = gr.Number(value=3.5, label=f"Source CFG", interactive=True)
|
135 |
# reconstruction
|
136 |
-
skip = gr.Number(value=36, precision=0, label="Skip", interactive=True)
|
137 |
-
tar_cfg_scale = gr.Number(value=15, label=f"
|
138 |
# edit
|
139 |
edit_concept = gr.Textbox(lines=1, label="Edit Concept", interactive=True)
|
140 |
-
sega_edit_guidance = gr.Number(value=5, label=f"
|
141 |
warm_up = gr.Number(value=5, label=f"Warm-up Steps", interactive=True)
|
142 |
neg_guidance = gr.Checkbox(label="SEGA negative_guidance")
|
143 |
|
|
|
109 |
|
110 |
with gr.Row():
|
111 |
input_image = gr.Image(label="Input Image", interactive=True)
|
112 |
+
ddpm_edited_image = gr.Image(label=f"DDPM Reconstructed Image", interactive=False)
|
113 |
+
sega_edited_image = gr.Image(label=f"DDPM + SEGA Edited Image", interactive=False)
|
114 |
input_image.style(height=512, width=512)
|
115 |
ddpm_edited_image.style(height=512, width=512)
|
116 |
sega_edited_image.style(height=512, width=512)
|
|
|
130 |
|
131 |
with gr.Row():
|
132 |
#inversion
|
133 |
+
steps = gr.Number(value=100, precision=0, label="Num Diffusion Steps", interactive=True)
|
134 |
# src_cfg_scale = gr.Number(value=3.5, label=f"Source CFG", interactive=True)
|
135 |
# reconstruction
|
136 |
+
skip = gr.Number(value=36, precision=0, label="Skip Steps", interactive=True)
|
137 |
+
tar_cfg_scale = gr.Number(value=15, label=f"Guidance Scale", interactive=True)
|
138 |
# edit
|
139 |
edit_concept = gr.Textbox(lines=1, label="Edit Concept", interactive=True)
|
140 |
+
sega_edit_guidance = gr.Number(value=5, label=f"Edit Guidance Scale", interactive=True)
|
141 |
warm_up = gr.Number(value=5, label=f"Warm-up Steps", interactive=True)
|
142 |
neg_guidance = gr.Checkbox(label="SEGA negative_guidance")
|
143 |
|