Spaces:
Running
Running
Commit
·
bc04a11
1
Parent(s):
205280f
update
Browse files- gradio_demo/app.py +1 -3
gradio_demo/app.py
CHANGED
@@ -141,10 +141,8 @@ def instantir_restore(
|
|
141 |
|
142 |
print('optimizing')
|
143 |
pipe.enable_vae_tiling()
|
144 |
-
# pipe.enable_attention_slicing()
|
145 |
-
# pipe.vae.enable_tiling()
|
146 |
if cpu_offload:
|
147 |
-
|
148 |
pipe.enable_sequential_cpu_offload()
|
149 |
print('done')
|
150 |
|
|
|
141 |
|
142 |
print('optimizing')
|
143 |
pipe.enable_vae_tiling()
|
|
|
|
|
144 |
if cpu_offload:
|
145 |
+
pipe.enable_model_cpu_offload()
|
146 |
pipe.enable_sequential_cpu_offload()
|
147 |
print('done')
|
148 |
|