not-lain commited on
Commit
6d6f9ff
·
1 Parent(s): 9a3b780
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -61,9 +61,9 @@ def inpaint(
61
  background, mask = prepare_image_and_mask(
62
  image, padding_top, padding_bottom, padding_left, padding_right
63
  )
64
- mask = mask.convert("L")
65
- cnet_image = background.copy()
66
- cnet_image.paste(0, (0, 0), mask)
67
 
68
  result = pipe(
69
  prompt=prompt,
@@ -76,7 +76,6 @@ def inpaint(
76
  ).images[0]
77
 
78
  result = result.convert("RGBA")
79
- # cnet_image.paste(result, (0, 0), mask)
80
 
81
  return result
82
 
 
61
  background, mask = prepare_image_and_mask(
62
  image, padding_top, padding_bottom, padding_left, padding_right
63
  )
64
+ # mask = mask.convert("L")
65
+ # cnet_image = background.copy()
66
+ # cnet_image.paste(0, (0, 0), mask)
67
 
68
  result = pipe(
69
  prompt=prompt,
 
76
  ).images[0]
77
 
78
  result = result.convert("RGBA")
 
79
 
80
  return result
81