Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -56,13 +56,13 @@ def run(*args):
|
|
56 |
|
57 |
return ims, pipeline.debug_img_list
|
58 |
|
59 |
-
id_scale = 0.8,
|
60 |
-
steps = 4,
|
61 |
-
seed = 42,
|
62 |
-
n_samples = 2,
|
63 |
-
scale = 1.2,
|
64 |
-
H = 1024,
|
65 |
-
W = 768
|
66 |
|
67 |
_MARKDOWN_ = """
|
68 |
<h2><b>This is the demo for DyCA-HiFi for Image to Identity Customization</b></h2>
|
@@ -120,21 +120,21 @@ with gr.Blocks(title="DyCA-HiFi", theme = "Yntec/HaleyCH_Theme_Orange") as SAK:
|
|
120 |
label="ID Mix (if you want to mix two ID image, please turn this on, otherwise, turn this off)",
|
121 |
value=False,
|
122 |
)
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
|
139 |
gr.Markdown("## Examples")
|
140 |
example_inps = [
|
|
|
56 |
|
57 |
return ims, pipeline.debug_img_list
|
58 |
|
59 |
+
# id_scale = 0.8,
|
60 |
+
# steps = 4,
|
61 |
+
# seed = 42,
|
62 |
+
# n_samples = 2,
|
63 |
+
# scale = 1.2,
|
64 |
+
# H = 1024,
|
65 |
+
# W = 768
|
66 |
|
67 |
_MARKDOWN_ = """
|
68 |
<h2><b>This is the demo for DyCA-HiFi for Image to Identity Customization</b></h2>
|
|
|
120 |
label="ID Mix (if you want to mix two ID image, please turn this on, otherwise, turn this off)",
|
121 |
value=False,
|
122 |
)
|
123 |
+
steps = gr.Slider(label="Steps", value=4, minimum=1, maximum=8, step=1)
|
124 |
+
seed = gr.Slider(
|
125 |
+
label="Seed", value=42, minimum=np.iinfo(np.uint32).min, maximum=np.iinfo(np.uint32).max, step=1
|
126 |
+
)
|
127 |
+
n_samples = gr.Slider(label="Num samples", value=2, minimum=1, maximum=4, step=1)
|
128 |
+
scale = gr.Slider(
|
129 |
+
label="CFG, recommend value range [1, 1.5], 1 will be faster ",
|
130 |
+
value=1.2,
|
131 |
+
minimum=1,
|
132 |
+
maximum=1.5,
|
133 |
+
step=0.1,
|
134 |
+
)
|
135 |
+
with gr.Row():
|
136 |
+
H = gr.Slider(label="Height", value=1024, minimum=512, maximum=1280, step=64)
|
137 |
+
W = gr.Slider(label="Width", value=768, minimum=512, maximum=1280, step=64)
|
138 |
|
139 |
gr.Markdown("## Examples")
|
140 |
example_inps = [
|