Spaces:
Runtime error
Runtime error
LiangbinXie
commited on
Commit
·
e26a87b
1
Parent(s):
8d1725b
update app.py
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@ from ldm.modules.extra_condition.api import (ExtraCondition, get_adapter_feature
|
|
| 21 |
|
| 22 |
torch.set_grad_enabled(False)
|
| 23 |
|
| 24 |
-
supported_cond = ['style', 'color', '
|
| 25 |
|
| 26 |
# download the checkpoints
|
| 27 |
urls = {
|
|
@@ -276,8 +276,8 @@ with gr.Blocks(css='style.css') as demo:
|
|
| 276 |
neg_prompt = gr.Textbox(label="Negative Prompt", value=DEFAULT_NEGATIVE_PROMPT)
|
| 277 |
scale = gr.Slider(
|
| 278 |
label="Guidance Scale (Classifier free guidance)", value=7.5, minimum=1, maximum=20, step=0.1)
|
| 279 |
-
n_samples = gr.Slider(label="Num samples", value=1, minimum=1, maximum=
|
| 280 |
-
seed = gr.Slider(label="Seed", value=42, minimum=0, maximum=10000, step=1)
|
| 281 |
steps = gr.Slider(label="Steps", value=50, minimum=10, maximum=100, step=1)
|
| 282 |
resize_short_edge = gr.Slider(label="Image resolution", value=512, minimum=320, maximum=1024, step=1)
|
| 283 |
cond_tau = gr.Slider(
|
|
|
|
| 21 |
|
| 22 |
torch.set_grad_enabled(False)
|
| 23 |
|
| 24 |
+
supported_cond = ['style', 'color', 'sketch', 'openpose', 'depth', 'canny']
|
| 25 |
|
| 26 |
# download the checkpoints
|
| 27 |
urls = {
|
|
|
|
| 276 |
neg_prompt = gr.Textbox(label="Negative Prompt", value=DEFAULT_NEGATIVE_PROMPT)
|
| 277 |
scale = gr.Slider(
|
| 278 |
label="Guidance Scale (Classifier free guidance)", value=7.5, minimum=1, maximum=20, step=0.1)
|
| 279 |
+
n_samples = gr.Slider(label="Num samples", value=1, minimum=1, maximum=1, step=1)
|
| 280 |
+
seed = gr.Slider(label="Seed", value=42, minimum=0, maximum=10000, step=1, randomize=True)
|
| 281 |
steps = gr.Slider(label="Steps", value=50, minimum=10, maximum=100, step=1)
|
| 282 |
resize_short_edge = gr.Slider(label="Image resolution", value=512, minimum=320, maximum=1024, step=1)
|
| 283 |
cond_tau = gr.Slider(
|