fffiloni commited on
Commit
0473e4c
1 Parent(s): 8cb5b15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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,