Spaces:
Sleeping
Sleeping
larger default images
Browse files
app.py
CHANGED
@@ -8,8 +8,8 @@ from diffusers.utils import make_image_grid
|
|
8 |
|
9 |
atkbold = ImageFont.truetype("Atkinson-Hyperlegible-Bold-102.otf",50)
|
10 |
|
11 |
-
default_width =
|
12 |
-
default_height =
|
13 |
default_timesteps = 8
|
14 |
|
15 |
def mask_image_factory(mask_text="ASK FOR\nA SNACK", width=default_width, height=default_height):
|
@@ -99,11 +99,11 @@ app("corgis running in the park", "ugly, wrong", "ASK FOR\nA SNACK", 1, 1.0, def
|
|
99 |
iface = gr.Interface(
|
100 |
app,
|
101 |
[
|
102 |
-
gr.Textbox(label="Prompt", value="
|
103 |
gr.Textbox(label="Negative Prompt", value="ugly, wrong"),
|
104 |
gr.Textbox(label="Mask Text", value="ASK FOR\nA SNACK"),
|
105 |
gr.Number(label="Number of Inference Steps", value=default_timesteps, minimum=1, maximum=50, step=1),
|
106 |
-
gr.Slider(label="ControlNet Conditioning Scale", value=0.
|
107 |
gr.Number(label="Width", value=default_width, minimum=256, maximum=2048, precision=0),
|
108 |
gr.Number(label="Height", value=default_height, minimum=256, maximum=2048, precision=0),
|
109 |
gr.Number(label="Random Number Seed", value=42, minimum=0, maximum=2**32-1, precision=0),
|
|
|
8 |
|
9 |
atkbold = ImageFont.truetype("Atkinson-Hyperlegible-Bold-102.otf",50)
|
10 |
|
11 |
+
default_width = 1920
|
12 |
+
default_height = 1080
|
13 |
default_timesteps = 8
|
14 |
|
15 |
def mask_image_factory(mask_text="ASK FOR\nA SNACK", width=default_width, height=default_height):
|
|
|
99 |
iface = gr.Interface(
|
100 |
app,
|
101 |
[
|
102 |
+
gr.Textbox(label="Prompt", value="large happy dogs frolic on the seashore, tall cliffs, sun at the horizon, boulders, tide pools, golden hour"),
|
103 |
gr.Textbox(label="Negative Prompt", value="ugly, wrong"),
|
104 |
gr.Textbox(label="Mask Text", value="ASK FOR\nA SNACK"),
|
105 |
gr.Number(label="Number of Inference Steps", value=default_timesteps, minimum=1, maximum=50, step=1),
|
106 |
+
gr.Slider(label="ControlNet Conditioning Scale", value=0.6, minimum=-1.0, maximum=2.0, step=0.01),
|
107 |
gr.Number(label="Width", value=default_width, minimum=256, maximum=2048, precision=0),
|
108 |
gr.Number(label="Height", value=default_height, minimum=256, maximum=2048, precision=0),
|
109 |
gr.Number(label="Random Number Seed", value=42, minimum=0, maximum=2**32-1, precision=0),
|