itsyogesh commited on
Commit
2a190d1
·
verified ·
1 Parent(s): cf689d2

Reuse smooth mask

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -125,7 +125,7 @@ def crop_signature(original_image_path, mask, padding=32):
125
 
126
  # Create an RGBA image with a black background and the denoised mask as the alpha channel
127
  mask_image = Image.new('RGBA', (w_padded, h_padded), (0, 0, 0))
128
- pil_mask = Image.fromarray(cropped_mask).convert('L')
129
  mask_image.putalpha(pil_mask)
130
 
131
  return mask_image
 
125
 
126
  # Create an RGBA image with a black background and the denoised mask as the alpha channel
127
  mask_image = Image.new('RGBA', (w_padded, h_padded), (0, 0, 0))
128
+ pil_mask = Image.fromarray(smooth_denoised_mask).convert('L')
129
  mask_image.putalpha(pil_mask)
130
 
131
  return mask_image