尝试换成cpu
Browse files
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("
|
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 |
|