MrPio commited on
Commit
8c9e7fc
·
1 Parent(s): 0e5020e

Disable xFormers

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -24,8 +24,8 @@ pipe = StableDiffusionControlNetPipeline.from_pretrained(
24
 
25
  # speed & memory optimizations
26
  pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)
27
- pipe.enable_xformers_memory_efficient_attention() # if xformers installed
28
- pipe.enable_model_cpu_offload()
29
 
30
 
31
  def pil2hash(image: Image.Image) -> str:
 
24
 
25
  # speed & memory optimizations
26
  pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)
27
+ # pipe.enable_xformers_memory_efficient_attention() # if xformers installed
28
+ # pipe.enable_model_cpu_offload()
29
 
30
 
31
  def pil2hash(image: Image.Image) -> str: