Spaces:
Running
on
Zero
Running
on
Zero
jake
commited on
Commit
·
bce1db7
1
Parent(s):
f9c23d1
TF
Browse files
app.py
CHANGED
|
@@ -198,7 +198,7 @@ def _load_i2i_examples():
|
|
| 198 |
|
| 199 |
n = min(len(image_files), len(text_files))
|
| 200 |
examples = []
|
| 201 |
-
for i in range(
|
| 202 |
img_path = image_files[i]
|
| 203 |
txt_path = text_files[i]
|
| 204 |
instruction = txt_path.read_text(encoding="utf-8").strip()
|
|
@@ -641,8 +641,8 @@ with gr.Blocks(
|
|
| 641 |
i2i_image_out = gr.Image(label="Edited image")
|
| 642 |
i2i_status = gr.Textbox(label="Status", interactive=False)
|
| 643 |
with gr.Accordion("Advanced settings", open=False):
|
| 644 |
-
i2i_timesteps = gr.Slider(4, 128, value=
|
| 645 |
-
i2i_temperature = gr.Slider(0.0, 2.0, value=
|
| 646 |
i2i_guidance = gr.Slider(0.0, 8.0, value=3.5, step=0.1, label="CFG scale")
|
| 647 |
|
| 648 |
if I2I_EXAMPLES:
|
|
|
|
| 198 |
|
| 199 |
n = min(len(image_files), len(text_files))
|
| 200 |
examples = []
|
| 201 |
+
for i in range(2):
|
| 202 |
img_path = image_files[i]
|
| 203 |
txt_path = text_files[i]
|
| 204 |
instruction = txt_path.read_text(encoding="utf-8").strip()
|
|
|
|
| 641 |
i2i_image_out = gr.Image(label="Edited image")
|
| 642 |
i2i_status = gr.Textbox(label="Status", interactive=False)
|
| 643 |
with gr.Accordion("Advanced settings", open=False):
|
| 644 |
+
i2i_timesteps = gr.Slider(4, 128, value=12, step=2, label="Timesteps")
|
| 645 |
+
i2i_temperature = gr.Slider(0.0, 2.0, value=0.3, step=0.05, label="Sampling temperature")
|
| 646 |
i2i_guidance = gr.Slider(0.0, 8.0, value=3.5, step=0.1, label="CFG scale")
|
| 647 |
|
| 648 |
if I2I_EXAMPLES:
|