dginovker commited on
Commit
95da2a5
·
verified ·
1 Parent(s): 1b40717

try commenting out something that was commented out before to see if it fixes runtime error

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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):