Spaces:
Runtime error
Runtime error
Update app_depth.py
Browse files- app_depth.py +18 -17
app_depth.py
CHANGED
|
@@ -8,19 +8,20 @@ def randomize_seed_fn(seed: int, randomize_seed: bool) -> int:
|
|
| 8 |
return seed
|
| 9 |
|
| 10 |
|
| 11 |
-
examples = [
|
| 12 |
-
"condition/example/t2i/multigen/sofa.png",
|
| 13 |
-
"The red sofa in the living room has several pillows on it", "(512, 512)"
|
| 14 |
-
],
|
| 15 |
[
|
| 16 |
-
"condition/example/t2i/
|
| 17 |
-
"A
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
| 19 |
],
|
| 20 |
[
|
| 21 |
-
"condition/example/t2i/
|
| 22 |
-
"a
|
| 23 |
-
]
|
|
|
|
| 24 |
|
| 25 |
|
| 26 |
def create_demo(process):
|
|
@@ -46,12 +47,12 @@ def create_demo(process):
|
|
| 46 |
maximum=30.0,
|
| 47 |
value=2,
|
| 48 |
step=0.1)
|
| 49 |
-
control_strength = gr.Slider(minimum=0., maximum=1.0, step=0.1, value=
|
| 50 |
-
resolution = gr.Slider(label="(H, W)",
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
top_k = gr.Slider(minimum=1,
|
| 56 |
maximum=16384,
|
| 57 |
step=1,
|
|
@@ -85,7 +86,7 @@ def create_demo(process):
|
|
| 85 |
inputs=[
|
| 86 |
image,
|
| 87 |
prompt,
|
| 88 |
-
resolution,
|
| 89 |
]
|
| 90 |
)
|
| 91 |
inputs = [
|
|
|
|
| 8 |
return seed
|
| 9 |
|
| 10 |
|
| 11 |
+
examples = [
|
|
|
|
|
|
|
|
|
|
| 12 |
[
|
| 13 |
+
"condition/example/t2i/multi_resolution/bird.jpg",
|
| 14 |
+
"A bird made of blue crystal"
|
| 15 |
+
],
|
| 16 |
+
[
|
| 17 |
+
"condition/example/t2i/multigen/sofa.png",
|
| 18 |
+
"The red sofa in the living room has several pillows on it"
|
| 19 |
],
|
| 20 |
[
|
| 21 |
+
"condition/example/t2i/multigen/house.jpg",
|
| 22 |
+
"A brick house with a chimney under a starry sky.",
|
| 23 |
+
]
|
| 24 |
+
]
|
| 25 |
|
| 26 |
|
| 27 |
def create_demo(process):
|
|
|
|
| 47 |
maximum=30.0,
|
| 48 |
value=2,
|
| 49 |
step=0.1)
|
| 50 |
+
control_strength = gr.Slider(minimum=0., maximum=1.0, step=0.1, value=0.6, label="control_strength")
|
| 51 |
+
# resolution = gr.Slider(label="(H, W)",
|
| 52 |
+
# minimum=384,
|
| 53 |
+
# maximum=768,
|
| 54 |
+
# value=512,
|
| 55 |
+
# step=16)
|
| 56 |
top_k = gr.Slider(minimum=1,
|
| 57 |
maximum=16384,
|
| 58 |
step=1,
|
|
|
|
| 86 |
inputs=[
|
| 87 |
image,
|
| 88 |
prompt,
|
| 89 |
+
# resolution,
|
| 90 |
]
|
| 91 |
)
|
| 92 |
inputs = [
|