Spaces:
Running
Running
Commit
·
d922d3e
1
Parent(s):
0798bd5
update
Browse files- gradio_demo/app.py +4 -4
gradio_demo/app.py
CHANGED
@@ -141,9 +141,9 @@ def instantir_restore(
|
|
141 |
|
142 |
pipe.enable_vae_tiling()
|
143 |
|
144 |
-
if cpu_offload:
|
145 |
-
pipe.enable_model_cpu_offload()
|
146 |
-
#pipe.enable_sequential_cpu_offload()
|
147 |
|
148 |
|
149 |
if isinstance(guidance_end, int):
|
@@ -255,7 +255,7 @@ with gr.Blocks() as demo:
|
|
255 |
preview_start = gr.Slider(label="Preview Start", value=0, minimum=0, maximum=30, step=1)
|
256 |
prompt = gr.Textbox(label="Restoration prompts (Optional)", placeholder="")
|
257 |
mode = gr.Checkbox(label="Creative Restoration", value=False)
|
258 |
-
cpu_offload = gr.Checkbox(label="CPU offload", info="If you have a lot of GPU VRAM, uncheck this option for faster generation", value=False, visible=
|
259 |
|
260 |
|
261 |
with gr.Row():
|
|
|
141 |
|
142 |
pipe.enable_vae_tiling()
|
143 |
|
144 |
+
# if cpu_offload:
|
145 |
+
# pipe.enable_model_cpu_offload()
|
146 |
+
# #pipe.enable_sequential_cpu_offload()
|
147 |
|
148 |
|
149 |
if isinstance(guidance_end, int):
|
|
|
255 |
preview_start = gr.Slider(label="Preview Start", value=0, minimum=0, maximum=30, step=1)
|
256 |
prompt = gr.Textbox(label="Restoration prompts (Optional)", placeholder="")
|
257 |
mode = gr.Checkbox(label="Creative Restoration", value=False)
|
258 |
+
cpu_offload = gr.Checkbox(label="CPU offload", info="If you have a lot of GPU VRAM, uncheck this option for faster generation", value=False, visible=False)
|
259 |
|
260 |
|
261 |
with gr.Row():
|