Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -58,7 +58,7 @@ control_types = ["Ghibli"]
|
|
58 |
|
59 |
# Example data
|
60 |
single_examples = [
|
61 |
-
["Ghibli Studio style, Charming hand-drawn anime-style illustration", Image.open("./test_imgs/00.png"), 680, 1024, 5, "Ghibli",
|
62 |
["Ghibli Studio style, Charming hand-drawn anime-style illustration", Image.open("./test_imgs/02.png"), 560, 1024, 42, "Ghibli", False, 0],
|
63 |
["Ghibli Studio style, Charming hand-drawn anime-style illustration", Image.open("./test_imgs/03.png"), 568, 1024, 1, "Ghibli", False, 0],
|
64 |
["Ghibli Studio style, Charming hand-drawn anime-style illustration", Image.open("./test_imgs/04.png"), 768, 672, 1, "Ghibli", False, 0],
|
@@ -90,7 +90,7 @@ with gr.Blocks() as demo:
|
|
90 |
width = gr.Slider(minimum=256, maximum=1024, step=64, label="Width", value=768)
|
91 |
seed = gr.Number(label="Seed", value=42)
|
92 |
control_type = gr.Dropdown(choices=control_types, label="Control Type")
|
93 |
-
use_zero_init = gr.Checkbox(label="Use zero
|
94 |
zero_steps = gr.Number(label="Zero Init Steps", value=1)
|
95 |
single_generate_btn = gr.Button("Generate Image")
|
96 |
|
|
|
58 |
|
59 |
# Example data
|
60 |
single_examples = [
|
61 |
+
["Ghibli Studio style, Charming hand-drawn anime-style illustration", Image.open("./test_imgs/00.png"), 680, 1024, 5, "Ghibli", True, 1],
|
62 |
["Ghibli Studio style, Charming hand-drawn anime-style illustration", Image.open("./test_imgs/02.png"), 560, 1024, 42, "Ghibli", False, 0],
|
63 |
["Ghibli Studio style, Charming hand-drawn anime-style illustration", Image.open("./test_imgs/03.png"), 568, 1024, 1, "Ghibli", False, 0],
|
64 |
["Ghibli Studio style, Charming hand-drawn anime-style illustration", Image.open("./test_imgs/04.png"), 768, 672, 1, "Ghibli", False, 0],
|
|
|
90 |
width = gr.Slider(minimum=256, maximum=1024, step=64, label="Width", value=768)
|
91 |
seed = gr.Number(label="Seed", value=42)
|
92 |
control_type = gr.Dropdown(choices=control_types, label="Control Type")
|
93 |
+
use_zero_init = gr.Checkbox(label="Use CFG zero star", value=False)
|
94 |
zero_steps = gr.Number(label="Zero Init Steps", value=1)
|
95 |
single_generate_btn = gr.Button("Generate Image")
|
96 |
|