L4Walk commited on
Commit
aa43190
·
1 Parent(s): 1a097d2

调试参数

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -37,7 +37,7 @@ pipe = StableDiffusionControlNetImg2ImgPipeline.from_pretrained(
37
  safety_checker=None,
38
  torch_dtype=torch.float16,
39
  ).to("cpu")
40
- pipe.enable_xformers_memory_efficient_attention()
41
 
42
 
43
  def resize_for_condition_image(input_image: Image.Image, resolution: int):
 
37
  safety_checker=None,
38
  torch_dtype=torch.float16,
39
  ).to("cpu")
40
+ # pipe.enable_xformers_memory_efficient_attention() # 只限GPU调用
41
 
42
 
43
  def resize_for_condition_image(input_image: Image.Image, resolution: int):