Spaces:
Running
Running
updated value
Browse files
frontend/webui/hf_demo.py
CHANGED
@@ -48,8 +48,8 @@ def predict(
|
|
48 |
lcm_diffusion_setting.inference_steps = steps
|
49 |
lcm_diffusion_setting.seed = seed
|
50 |
lcm_diffusion_setting.use_seed = True
|
51 |
-
lcm_diffusion_setting.image_width =
|
52 |
-
lcm_diffusion_setting.image_height =
|
53 |
lcm_diffusion_setting.use_openvino = True if is_openvino_device() else False
|
54 |
start = perf_counter()
|
55 |
images = lcm_text_to_image.generate(lcm_diffusion_setting)
|
@@ -117,7 +117,7 @@ with gr.Blocks(css=css) as demo:
|
|
117 |
with gr.Accordion("Advanced options", open=False):
|
118 |
steps = gr.Slider(
|
119 |
label="Steps",
|
120 |
-
value=
|
121 |
minimum=1,
|
122 |
maximum=6,
|
123 |
step=1,
|
|
|
48 |
lcm_diffusion_setting.inference_steps = steps
|
49 |
lcm_diffusion_setting.seed = seed
|
50 |
lcm_diffusion_setting.use_seed = True
|
51 |
+
lcm_diffusion_setting.image_width = 384 if is_openvino_device() else 512
|
52 |
+
lcm_diffusion_setting.image_height = 384 if is_openvino_device() else 512
|
53 |
lcm_diffusion_setting.use_openvino = True if is_openvino_device() else False
|
54 |
start = perf_counter()
|
55 |
images = lcm_text_to_image.generate(lcm_diffusion_setting)
|
|
|
117 |
with gr.Accordion("Advanced options", open=False):
|
118 |
steps = gr.Slider(
|
119 |
label="Steps",
|
120 |
+
value=3 if is_openvino_device() else 3,
|
121 |
minimum=1,
|
122 |
maximum=6,
|
123 |
step=1,
|