Spaces:
Sleeping
Sleeping
Commit
·
a22d215
1
Parent(s):
187b850
change of layout
Browse files
app.py
CHANGED
@@ -37,15 +37,15 @@ examples = [
|
|
37 |
],
|
38 |
[
|
39 |
"a peacock, back view | a peacock, front view",
|
40 |
-
"1 | -3
|
41 |
"30",
|
42 |
-
"
|
43 |
],
|
44 |
[
|
45 |
"a peacock, back view",
|
46 |
"1",
|
47 |
"30",
|
48 |
-
"
|
49 |
],
|
50 |
[
|
51 |
"A boy wearing sunglasses | a pair of sunglasses with white frame",
|
@@ -122,21 +122,21 @@ with app:
|
|
122 |
|
123 |
with gr.Row():
|
124 |
with gr.Column():
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
|
141 |
with gr.Column():
|
142 |
img_output = gr.Image(
|
@@ -160,7 +160,7 @@ with app:
|
|
160 |
outputs=[img_output],
|
161 |
)
|
162 |
gr.Markdown("""
|
163 |
-
\n
|
164 |
""")
|
165 |
|
166 |
gr.Markdown(
|
|
|
37 |
],
|
38 |
[
|
39 |
"a peacock, back view | a peacock, front view",
|
40 |
+
"1 | -3",
|
41 |
"30",
|
42 |
+
"10"
|
43 |
],
|
44 |
[
|
45 |
"a peacock, back view",
|
46 |
"1",
|
47 |
"30",
|
48 |
+
"10"
|
49 |
],
|
50 |
[
|
51 |
"A boy wearing sunglasses | a pair of sunglasses with white frame",
|
|
|
122 |
|
123 |
with gr.Row():
|
124 |
with gr.Column():
|
125 |
+
with gr.Tab(label="Inputs"):
|
126 |
+
gr.Markdown(
|
127 |
+
"### Provide a list of prompts and their weights separated by | "
|
128 |
+
)
|
129 |
+
prompt = gr.Textbox(label="List of prompts:", show_label=True)
|
130 |
+
weights = gr.Textbox(
|
131 |
+
label="List of weights:", show_label=True
|
132 |
+
)
|
133 |
+
seed = gr.Textbox(
|
134 |
+
label="Seed:", show_label=True
|
135 |
+
)
|
136 |
+
scale = gr.Textbox(
|
137 |
+
label="Guidance scale:", show_label=True
|
138 |
+
)
|
139 |
+
image_gen_btn = gr.Button(value="Generate")
|
140 |
|
141 |
with gr.Column():
|
142 |
img_output = gr.Image(
|
|
|
160 |
outputs=[img_output],
|
161 |
)
|
162 |
gr.Markdown("""
|
163 |
+
\n The algorithem is based on the paper: [Re-imagine the Negative Prompt Algorithm: Transform 2D Diffusion into 3D, alleviate Janus problem and Beyond.](https://Perp-Neg.github.i).
|
164 |
""")
|
165 |
|
166 |
gr.Markdown(
|