Spaces:
Runtime error
Runtime error
barakmam
commited on
Commit
·
6163c61
1
Parent(s):
e4eecf5
update with cache_examples=False
Browse files
app.py
CHANGED
@@ -51,9 +51,9 @@ if device == "cuda":
|
|
51 |
# with gr.Blocks(css=css) as demo:
|
52 |
# with gr.Blocks(css="style.css") as demo:
|
53 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
54 |
-
gr.Markdown(f""" # Real Time Editing with
|
55 |
-
This is a demo for our [paper](https://arxiv.org/abs/2312.12540) **
|
56 |
-
Image editing using
|
57 |
Take a look at the [project page](https://barakmam.github.io/rnri.github.io/).
|
58 |
""")
|
59 |
inv_state = gr.State()
|
@@ -189,6 +189,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
189 |
examples='examples',
|
190 |
inputs=[input_image, description_prompt, target_prompt, edit_guidance_scale, num_inference_steps,
|
191 |
inversion_max_step, rnri_iterations, rnri_alpha, rnri_lr],
|
|
|
192 |
)
|
193 |
|
194 |
gr.Markdown(f"""Disclaimer: Performance may be inferior to the reported in the paper due to hardware limitation.
|
|
|
51 |
# with gr.Blocks(css=css) as demo:
|
52 |
# with gr.Blocks(css="style.css") as demo:
|
53 |
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
54 |
+
gr.Markdown(f""" # Real Time Editing with GNRI Inversion 🍎⚡️
|
55 |
+
This is a demo for our [paper](https://arxiv.org/abs/2312.12540) **GNRI: Lightning-fast Image Inversion and Editing for Text-to-Image Diffusion Models**.
|
56 |
+
Image editing using GNRI for inversion demonstrates significant speed-up and improved quality compared to previous state-of-the-art methods.
|
57 |
Take a look at the [project page](https://barakmam.github.io/rnri.github.io/).
|
58 |
""")
|
59 |
inv_state = gr.State()
|
|
|
189 |
examples='examples',
|
190 |
inputs=[input_image, description_prompt, target_prompt, edit_guidance_scale, num_inference_steps,
|
191 |
inversion_max_step, rnri_iterations, rnri_alpha, rnri_lr],
|
192 |
+
cache_examples=False
|
193 |
)
|
194 |
|
195 |
gr.Markdown(f"""Disclaimer: Performance may be inferior to the reported in the paper due to hardware limitation.
|