Spaces:
Runtime error
Runtime error
Commit
·
fc06901
1
Parent(s):
e27aead
Update app.py
Browse files
app.py
CHANGED
@@ -137,52 +137,54 @@ options = ['SD2.1']
|
|
137 |
with block:
|
138 |
gr.Markdown("SD vs. FreeU.")
|
139 |
with gr.Group():
|
140 |
-
with gr.Row():
|
141 |
-
sd_options = gr.Dropdown(["SD2.1"], label="SD options")
|
142 |
-
|
143 |
with gr.Column():
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
step=1,
|
159 |
-
value=42)
|
160 |
-
|
161 |
|
162 |
with gr.Group():
|
163 |
with gr.Row():
|
164 |
-
with gr.Accordion('FreeU Parameters:
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
186 |
|
187 |
with gr.Row():
|
188 |
with gr.Group():
|
|
|
137 |
with block:
|
138 |
gr.Markdown("SD vs. FreeU.")
|
139 |
with gr.Group():
|
140 |
+
with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
|
|
|
|
|
141 |
with gr.Column():
|
142 |
+
text = gr.Textbox(
|
143 |
+
label="Enter your prompt",
|
144 |
+
show_label=False,
|
145 |
+
max_lines=1,
|
146 |
+
placeholder="Enter your prompt",
|
147 |
+
container=False,
|
148 |
+
)
|
149 |
+
btn = gr.Button("Generate image", scale=0)
|
150 |
+
|
151 |
+
with gr.Row():
|
152 |
+
sd_options = gr.Dropdown(["SD2.1"], label="SD options", value="SD2.1", visible=False)
|
153 |
+
|
154 |
+
|
155 |
+
|
|
|
|
|
|
|
156 |
|
157 |
with gr.Group():
|
158 |
with gr.Row():
|
159 |
+
with gr.Accordion('FreeU Parameters: ', open=False):
|
160 |
+
with gr.Row():
|
161 |
+
b1 = gr.Slider(label='b1: backbone factor of the first stage block of decoder',
|
162 |
+
minimum=1,
|
163 |
+
maximum=1.6,
|
164 |
+
step=0.01,
|
165 |
+
value=1.1)
|
166 |
+
b2 = gr.Slider(label='b2: backbone factor of the second stage block of decoder',
|
167 |
+
minimum=1,
|
168 |
+
maximum=1.6,
|
169 |
+
step=0.01,
|
170 |
+
value=1.2)
|
171 |
+
with gr.Row():
|
172 |
+
s1 = gr.Slider(label='s1: skip factor of the first stage block of decoder',
|
173 |
+
minimum=0,
|
174 |
+
maximum=1,
|
175 |
+
step=0.1,
|
176 |
+
value=0.9)
|
177 |
+
s2 = gr.Slider(label='s2: skip factor of the second stage block of decoder',
|
178 |
+
minimum=0,
|
179 |
+
maximum=1,
|
180 |
+
step=0.1,
|
181 |
+
value=0.2)
|
182 |
+
|
183 |
+
seed = gr.Slider(label='seed',
|
184 |
+
minimum=0,
|
185 |
+
maximum=1000,
|
186 |
+
step=1,
|
187 |
+
value=42)
|
188 |
|
189 |
with gr.Row():
|
190 |
with gr.Group():
|