Spaces:
Running
Running
P01yH3dr0n
commited on
Commit
•
656d6c8
1
Parent(s):
cbf4020
Update app.py
Browse files
app.py
CHANGED
@@ -46,19 +46,20 @@ def control_ui():
|
|
46 |
with gr.Row():
|
47 |
width = gr.Slider(label="Width", value=1024, minimum=64, maximum=2048, step=64)
|
48 |
height = gr.Slider(label="Height", value=1024, minimum=64, maximum=2048, step=64)
|
49 |
-
with gr.
|
50 |
-
with gr.
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
with gr.
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
|
|
62 |
with gr.Row():
|
63 |
with gr.Column():
|
64 |
with gr.Accordion('Advanced Gen Setting', open=False):
|
|
|
46 |
with gr.Row():
|
47 |
width = gr.Slider(label="Width", value=1024, minimum=64, maximum=2048, step=64)
|
48 |
height = gr.Slider(label="Height", value=1024, minimum=64, maximum=2048, step=64)
|
49 |
+
with gr.Row():
|
50 |
+
with gr.Column():
|
51 |
+
with gr.Accordion('风格迁移', open=False):
|
52 |
+
ref_image = gr.Image(label="上传图片", value=None, interactive=True, type="pil")
|
53 |
+
info_extract = gr.Slider(label='参考信息提取', value=1, minimum=0, maximum=1, step=0.1)
|
54 |
+
ref_str = gr.Slider(label='参考强度', value=0.6, minimum=0, maximum=1, step=0.1)
|
55 |
+
reuse_img_vibe = gr.Button(value='使用上一次生成的图片')
|
56 |
+
with gr.Accordion('蒙版重绘', open=False):
|
57 |
+
with gr.Row():
|
58 |
+
use_inp = gr.Checkbox(label='启用', value=False)
|
59 |
+
overlay = gr.Checkbox(label='覆盖原图', value=True)
|
60 |
+
inp_img = gr.Image(label="上传图片", value=None, interactive=True, type="pil", tool="sketch")
|
61 |
+
inp_str = gr.Slider(label='重绘强度', value=0.7, minimum=0, maximum=0.99, step=0.01)
|
62 |
+
reuse_img_inp = gr.Button(value='使用上一次生成的图片')
|
63 |
with gr.Row():
|
64 |
with gr.Column():
|
65 |
with gr.Accordion('Advanced Gen Setting', open=False):
|