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

尝试换成cpu

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ pipe = StableDiffusionControlNetImg2ImgPipeline.from_pretrained(
36
  controlnet=controlnet,
37
  safety_checker=None,
38
  torch_dtype=torch.float16,
39
- ).to("cuda")
40
  pipe.enable_xformers_memory_efficient_attention()
41
 
42
 
 
36
  controlnet=controlnet,
37
  safety_checker=None,
38
  torch_dtype=torch.float16,
39
+ ).to("cpu")
40
  pipe.enable_xformers_memory_efficient_attention()
41
 
42