Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -13,6 +13,9 @@ pipeline = StableDiffusionXLPipeline.from_pretrained(
|
|
13 |
scheduler=scheduler
|
14 |
).to("cuda")
|
15 |
|
|
|
|
|
|
|
16 |
handler = sa_handler.Handler(pipeline)
|
17 |
sa_args = sa_handler.StyleAlignedArgs(share_group_norm=False,
|
18 |
share_layer_norm=False,
|
|
|
13 |
scheduler=scheduler
|
14 |
).to("cuda")
|
15 |
|
16 |
+
pipeline.enable_model_cpu_offload()
|
17 |
+
pipeline.enable_vae_slicing()
|
18 |
+
|
19 |
handler = sa_handler.Handler(pipeline)
|
20 |
sa_args = sa_handler.StyleAlignedArgs(share_group_norm=False,
|
21 |
share_layer_norm=False,
|