lsb commited on
Commit
66ec171
1 Parent(s): c3f06e6
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -48,6 +48,7 @@ def app(img, prompt):
48
  old_size = img.size
49
  img = np.array(Image.fromarray(img).resize(working_size))
50
  mask = ban_cars_mask[get_seg_mask(img)]
 
51
  overlay_img = Image.fromarray(np.stack([img[:, :, 0], mask, img[:,:,2]], axis=-1))
52
  end_time = datetime.now().timestamp()
53
  draw = ImageDraw.Draw(overlay_img)
 
48
  old_size = img.size
49
  img = np.array(Image.fromarray(img).resize(working_size))
50
  mask = ban_cars_mask[get_seg_mask(img)]
51
+ mask = mask * 255
52
  overlay_img = Image.fromarray(np.stack([img[:, :, 0], mask, img[:,:,2]], axis=-1))
53
  end_time = datetime.now().timestamp()
54
  draw = ImageDraw.Draw(overlay_img)