调试参数
Browse files
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):
|