Spaces:
Runtime error
Runtime error
more example
Browse files
app.py
CHANGED
@@ -44,6 +44,51 @@ EXAMPLES = [
|
|
44 |
1.0,
|
45 |
1213698,
|
46 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
]
|
48 |
|
49 |
model_bundle = DirectedDiffusion.AttnEditorUtils.load_all_models(
|
@@ -221,6 +266,8 @@ with gr.Blocks() as demo:
|
|
221 |
""" Note:
|
222 |
1) Please click one of the examples below for quick setup.
|
223 |
2) if #DDsteps==0, it means the SD process runs without DD.
|
|
|
|
|
224 |
"""
|
225 |
)
|
226 |
with gr.Column(variant="compact"):
|
|
|
44 |
1.0,
|
45 |
1213698,
|
46 |
],
|
47 |
+
[
|
48 |
+
"The sun shining on a house",
|
49 |
+
"0.0,0.5,0.0,0.5",
|
50 |
+
"1,2",
|
51 |
+
10,
|
52 |
+
20,
|
53 |
+
1.0,
|
54 |
+
2483964026826,
|
55 |
+
],
|
56 |
+
[
|
57 |
+
"a diver swimming through a school of fish",
|
58 |
+
"0.5,1.0,0.0,0.5",
|
59 |
+
"1,2",
|
60 |
+
10,
|
61 |
+
10,
|
62 |
+
5.0,
|
63 |
+
2483964026826,
|
64 |
+
],
|
65 |
+
[
|
66 |
+
"A stone castle surrounded by lakes and trees",
|
67 |
+
"0.3,0.7,0.0,1.0",
|
68 |
+
"1,2,3",
|
69 |
+
10,
|
70 |
+
5,
|
71 |
+
1.0,
|
72 |
+
2483964026826,
|
73 |
+
],
|
74 |
+
[
|
75 |
+
"A dog hiding behind the chair",
|
76 |
+
"0.5,0.9,0.0,1.0",
|
77 |
+
"1,2",
|
78 |
+
10,
|
79 |
+
5,
|
80 |
+
2.5,
|
81 |
+
248396402123,
|
82 |
+
],
|
83 |
+
[
|
84 |
+
"A dog sitting next to a mirror",
|
85 |
+
"0.0,0.5,0.0,1.0 0.5,1.0,0.0,1.0",
|
86 |
+
"1,2 6,7",
|
87 |
+
20,
|
88 |
+
5,
|
89 |
+
1.0,
|
90 |
+
24839640268232521,
|
91 |
+
],
|
92 |
]
|
93 |
|
94 |
model_bundle = DirectedDiffusion.AttnEditorUtils.load_all_models(
|
|
|
266 |
""" Note:
|
267 |
1) Please click one of the examples below for quick setup.
|
268 |
2) if #DDsteps==0, it means the SD process runs without DD.
|
269 |
+
3) The bounding box is the tuple of four scalars representing the fractional boundary of an image: left,right,top,bottom
|
270 |
+
4) The token indices are the word positions in the prompt associated with the edited region, 1-indexed.
|
271 |
"""
|
272 |
)
|
273 |
with gr.Column(variant="compact"):
|