Spaces:
Runtime error
Runtime error
ChenyangSi
commited on
Commit
·
9525232
1
Parent(s):
4f51d6f
Update app.py
Browse files
app.py
CHANGED
@@ -108,7 +108,33 @@ with block:
|
|
108 |
placeholder="Enter your prompt",
|
109 |
container=False,
|
110 |
)
|
111 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
|
113 |
|
114 |
with gr.Row():
|
@@ -122,27 +148,6 @@ with block:
|
|
122 |
with gr.Group():
|
123 |
btn = gr.Button("Generate image", scale=0)
|
124 |
|
125 |
-
with gr.Accordion('FreeU Parameters', open=False):
|
126 |
-
b1 = gr.Slider(label='b1: backbone factor of the first stage block of decoder',
|
127 |
-
minimum=1,
|
128 |
-
maximum=1.6,
|
129 |
-
step=0.1,
|
130 |
-
value=1)
|
131 |
-
b2 = gr.Slider(label='b2: backbone factor of the second stage block of decoder',
|
132 |
-
minimum=1,
|
133 |
-
maximum=1.6,
|
134 |
-
step=0.1,
|
135 |
-
value=1)
|
136 |
-
s1 = gr.Slider(label='s1: skip factor of the first stage block of decoder',
|
137 |
-
minimum=0,
|
138 |
-
maximum=1,
|
139 |
-
step=0.1,
|
140 |
-
value=1)
|
141 |
-
s2 = gr.Slider(label='s2: skip factor of the second stage block of decoder',
|
142 |
-
minimum=0,
|
143 |
-
maximum=1,
|
144 |
-
step=0.1,
|
145 |
-
value=1)
|
146 |
with gr.Row():
|
147 |
with gr.Column(min_width=256) as c2:
|
148 |
image_2 = gr.Image(interactive=False)
|
|
|
108 |
placeholder="Enter your prompt",
|
109 |
container=False,
|
110 |
)
|
111 |
+
|
112 |
+
|
113 |
+
with gr.Group():
|
114 |
+
with gr.Row():
|
115 |
+
with gr.Accordion('FreeU Parameters: b', open=True):
|
116 |
+
b1 = gr.Slider(label='b1: backbone factor of the first stage block of decoder',
|
117 |
+
minimum=1,
|
118 |
+
maximum=1.6,
|
119 |
+
step=0.1,
|
120 |
+
value=1)
|
121 |
+
b2 = gr.Slider(label='b2: backbone factor of the second stage block of decoder',
|
122 |
+
minimum=1,
|
123 |
+
maximum=1.6,
|
124 |
+
step=0.1,
|
125 |
+
value=1)
|
126 |
+
with gr.Accordion('FreeU Parameters: s', open=True):
|
127 |
+
s1 = gr.Slider(label='s1: skip factor of the first stage block of decoder',
|
128 |
+
minimum=0,
|
129 |
+
maximum=1,
|
130 |
+
step=0.1,
|
131 |
+
value=1)
|
132 |
+
s2 = gr.Slider(label='s2: skip factor of the second stage block of decoder',
|
133 |
+
minimum=0,
|
134 |
+
maximum=1,
|
135 |
+
step=0.1,
|
136 |
+
value=1)
|
137 |
+
|
138 |
|
139 |
|
140 |
with gr.Row():
|
|
|
148 |
with gr.Group():
|
149 |
btn = gr.Button("Generate image", scale=0)
|
150 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
151 |
with gr.Row():
|
152 |
with gr.Column(min_width=256) as c2:
|
153 |
image_2 = gr.Image(interactive=False)
|