ChenyangSi commited on
Commit
fc06901
1 Parent(s): e27aead

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +44 -42
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
- with gr.Row(elem_id="prompt-container").style(mobile_collapse=False, equal_height=True):
145
- with gr.Column():
146
- text = gr.Textbox(
147
- label="Enter your prompt",
148
- show_label=False,
149
- max_lines=1,
150
- placeholder="Enter your prompt",
151
- container=False,
152
- )
153
- btn = gr.Button("Generate image", scale=0)
154
-
155
- seed = gr.Slider(label='seed',
156
- minimum=0,
157
- maximum=1000,
158
- step=1,
159
- value=42)
160
-
161
 
162
  with gr.Group():
163
  with gr.Row():
164
- with gr.Accordion('FreeU Parameters: b', open=True):
165
- b1 = gr.Slider(label='b1: backbone factor of the first stage block of decoder',
166
- minimum=1,
167
- maximum=1.6,
168
- step=0.01,
169
- value=1.1)
170
- b2 = gr.Slider(label='b2: backbone factor of the second stage block of decoder',
171
- minimum=1,
172
- maximum=1.6,
173
- step=0.01,
174
- value=1.2)
175
- with gr.Accordion('FreeU Parameters: s', open=True):
176
- s1 = gr.Slider(label='s1: skip factor of the first stage block of decoder',
177
- minimum=0,
178
- maximum=1,
179
- step=0.1,
180
- value=0.9)
181
- s2 = gr.Slider(label='s2: skip factor of the second stage block of decoder',
182
- minimum=0,
183
- maximum=1,
184
- step=0.1,
185
- value=0.2)
 
 
 
 
 
 
 
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():