estellea commited on
Commit
657f55f
1 Parent(s): 71d12ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -16,7 +16,8 @@ pipe = StableDiffusionLDM3DPipeline.from_pretrained(
16
  # , safety_checker=None
17
  )
18
  pipe.to(device)
19
- pipe.enable_xformers_memory_efficient_attention()
 
20
  pipe.enable_model_cpu_offload()
21
 
22
 
 
16
  # , safety_checker=None
17
  )
18
  pipe.to(device)
19
+ if device == "cuda":
20
+ pipe.enable_xformers_memory_efficient_attention()
21
  pipe.enable_model_cpu_offload()
22
 
23