NikhilJoson commited on
Commit
32e67bb
1 Parent(s): dce0edf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -223,7 +223,7 @@ def preprocess_mask(pipe, inp_mask, expan_lvl, blur_lvl):
223
  inp_mask = Image.fromarray(cv2.dilate(np.array(inp_mask), kernel, iterations=expan_lvl))
224
 
225
  if blur_lvl>0:
226
- inp_mask = pipe.mask_processor.blur(inp_mask, blur_factor=blur)
227
 
228
  # inp_mask = Image.fromarray(np.array(inp_mask))
229
  return inp_mask
 
223
  inp_mask = Image.fromarray(cv2.dilate(np.array(inp_mask), kernel, iterations=expan_lvl))
224
 
225
  if blur_lvl>0:
226
+ inp_mask = pipe.mask_processor.blur(inp_mask, blur_factor=blur_lvl)
227
 
228
  # inp_mask = Image.fromarray(np.array(inp_mask))
229
  return inp_mask