Cognomen commited on
Commit
2128fbd
Β·
1 Parent(s): b90c1de

enable xformers

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. requirements.txt +1 -0
app.py CHANGED
@@ -32,7 +32,7 @@ pipe = StableDiffusionControlNetPipeline.from_pretrained(
32
  )
33
  pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)
34
  #pipe.enable_model_cpu_offload()
35
- #pipe.enable_xformers_memory_efficient_attention()
36
 
37
  generator = torch.manual_seed(0)
38
 
 
32
  )
33
  pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)
34
  #pipe.enable_model_cpu_offload()
35
+ pipe.enable_xformers_memory_efficient_attention()
36
 
37
  generator = torch.manual_seed(0)
38
 
requirements.txt CHANGED
@@ -8,3 +8,4 @@ flax
8
  pillow
9
  torch
10
  torchvision
 
 
8
  pillow
9
  torch
10
  torchvision
11
+ xformers