Spaces:
Running
Running
disable custom size
Browse files- gradio_demo/app.py +3 -3
gradio_demo/app.py
CHANGED
@@ -134,7 +134,7 @@ def instantir_restore(
|
|
134 |
preview_start = preview_start / steps
|
135 |
elif preview_start > 1.0:
|
136 |
preview_start = preview_start / steps
|
137 |
-
lq = [resize_img(lq.convert("RGB"), size=
|
138 |
generator = torch.Generator(device=device).manual_seed(seed)
|
139 |
timesteps = [
|
140 |
i * (1000//steps) + pipe.scheduler.config.steps_offset for i in range(0, steps)
|
@@ -196,8 +196,8 @@ with gr.Blocks() as demo:
|
|
196 |
cfg_scale = gr.Number(label="CFG Scale", value=7.0, step=0.1)
|
197 |
|
198 |
with gr.Row():
|
199 |
-
height = gr.Number(label="Height", value=1024, step=1)
|
200 |
-
width = gr.Number(label="Width", value=1024, step=1)
|
201 |
seed = gr.Number(label="Seed", value=42, step=1)
|
202 |
# guidance_start = gr.Slider(label="Guidance Start", value=1.0, minimum=0.0, maximum=1.0, step=0.05)
|
203 |
guidance_end = gr.Slider(label="Start Free Rendering", value=30, minimum=0, maximum=30, step=1)
|
|
|
134 |
preview_start = preview_start / steps
|
135 |
elif preview_start > 1.0:
|
136 |
preview_start = preview_start / steps
|
137 |
+
lq = [resize_img(lq.convert("RGB"), size=None]
|
138 |
generator = torch.Generator(device=device).manual_seed(seed)
|
139 |
timesteps = [
|
140 |
i * (1000//steps) + pipe.scheduler.config.steps_offset for i in range(0, steps)
|
|
|
196 |
cfg_scale = gr.Number(label="CFG Scale", value=7.0, step=0.1)
|
197 |
|
198 |
with gr.Row():
|
199 |
+
height = gr.Number(label="Height", value=1024, step=1, visible=False)
|
200 |
+
width = gr.Number(label="Width", value=1024, step=1, visible=False)
|
201 |
seed = gr.Number(label="Seed", value=42, step=1)
|
202 |
# guidance_start = gr.Slider(label="Guidance Start", value=1.0, minimum=0.0, maximum=1.0, step=0.05)
|
203 |
guidance_end = gr.Slider(label="Start Free Rendering", value=30, minimum=0, maximum=30, step=1)
|