try commenting out something that was commented out before to see if it fixes runtime error
Browse files
app.py
CHANGED
@@ -39,8 +39,8 @@ pipe = StableDiffusionControlNetImg2ImgPipeline.from_pretrained(
|
|
39 |
torch_dtype=torch.float16,
|
40 |
).to("cuda")
|
41 |
pipe.enable_xformers_memory_efficient_attention()
|
42 |
-
pipe.controlnet = torch.nn.DataParallel(pipe.controlnet)
|
43 |
-
pipe.unet = torch.nn.DataParallel(pipe.unet)
|
44 |
|
45 |
|
46 |
def resize_for_condition_image(input_image: Image.Image, resolution: int, canvas_width: int = None, canvas_height: int = None):
|
|
|
39 |
torch_dtype=torch.float16,
|
40 |
).to("cuda")
|
41 |
pipe.enable_xformers_memory_efficient_attention()
|
42 |
+
# pipe.controlnet = torch.nn.DataParallel(pipe.controlnet)
|
43 |
+
# pipe.unet = torch.nn.DataParallel(pipe.unet)
|
44 |
|
45 |
|
46 |
def resize_for_condition_image(input_image: Image.Image, resolution: int, canvas_width: int = None, canvas_height: int = None):
|