Spaces:
Runtime error
Runtime error
Linoy Tsaban
commited on
Commit
•
a4fdf11
1
Parent(s):
3f07c35
Update app.py
Browse files
app.py
CHANGED
@@ -157,10 +157,8 @@ intro = """
|
|
157 |
Edit Friendly DDPM X Semantic Guidance
|
158 |
</h1>
|
159 |
<p style="font-size: 0.9rem; text-align: center; margin: 0rem; line-height: 1.2em; margin-top:1em">
|
160 |
-
edit real images by using the ddpm edit friendly inversion
|
161 |
(<a href="https://arxiv.org/abs/2301.12247" style="text-decoration: underline;" target="_blank">An Edit Friendly DDPM Noise Space:
|
162 |
Inversion and Manipulations </a>) \n
|
163 |
-
and iteracting with semantic concepts during the diffusion process
|
164 |
(<a href="https://arxiv.org/abs/2301.12247" style="text-decoration: underline;" target="_blank">SEGA: Instructing Diffusion using Semantic Dimensions</a>).
|
165 |
<p/>
|
166 |
<p style="font-size: 0.9rem; margin: 0rem; line-height: 1.2em; margin-top:1em">
|
@@ -170,11 +168,14 @@ For faster inference without waiting in queue, you may duplicate the space and u
|
|
170 |
<p/>"""
|
171 |
with gr.Blocks() as demo:
|
172 |
gr.HTML(intro)
|
173 |
-
|
|
|
|
|
|
|
174 |
with gr.Row():
|
175 |
-
src_prompt = gr.Textbox(lines=1, label="Source Prompt", interactive=True)
|
176 |
-
tar_prompt = gr.Textbox(lines=1, label="Target Prompt", interactive=True)
|
177 |
-
edit_concept = gr.Textbox(lines=1, label="SEGA Edit Concepts", interactive=True)
|
178 |
|
179 |
with gr.Row():
|
180 |
input_image = gr.Image(label="Input Image", interactive=True)
|
|
|
157 |
Edit Friendly DDPM X Semantic Guidance
|
158 |
</h1>
|
159 |
<p style="font-size: 0.9rem; text-align: center; margin: 0rem; line-height: 1.2em; margin-top:1em">
|
|
|
160 |
(<a href="https://arxiv.org/abs/2301.12247" style="text-decoration: underline;" target="_blank">An Edit Friendly DDPM Noise Space:
|
161 |
Inversion and Manipulations </a>) \n
|
|
|
162 |
(<a href="https://arxiv.org/abs/2301.12247" style="text-decoration: underline;" target="_blank">SEGA: Instructing Diffusion using Semantic Dimensions</a>).
|
163 |
<p/>
|
164 |
<p style="font-size: 0.9rem; margin: 0rem; line-height: 1.2em; margin-top:1em">
|
|
|
168 |
<p/>"""
|
169 |
with gr.Blocks() as demo:
|
170 |
gr.HTML(intro)
|
171 |
+
gr.Markdown(
|
172 |
+
"""
|
173 |
+
edit real images by using the ddpm edit friendly inversion and iteracting with semantic concepts during the diffusion process
|
174 |
+
""")
|
175 |
with gr.Row():
|
176 |
+
src_prompt = gr.Textbox(lines=1, label="Source Prompt", interactive=True, placeholder="optional: describe the original image")
|
177 |
+
tar_prompt = gr.Textbox(lines=1, label="Target Prompt", interactive=True, placeholder="optional: describe the target image to edit with DDPM")
|
178 |
+
edit_concept = gr.Textbox(lines=1, label="SEGA Edit Concepts", interactive=True, placeholder="optional: write a comma seperate list of concepts to add/remove with SEGA\n e.g. +dog,-cat,+oil painting")
|
179 |
|
180 |
with gr.Row():
|
181 |
input_image = gr.Image(label="Input Image", interactive=True)
|