lsb commited on
Commit
c3f06e6
1 Parent(s): 2d106b2
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -48,7 +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 / 2, img[:,:,2]], axis=-1))
52
  end_time = datetime.now().timestamp()
53
  draw = ImageDraw.Draw(overlay_img)
54
  draw.text((10, 10), f"Old size: {old_size}\nDuration: {int(1000 * (end_time - start_time))}ms\n<{prompt}>", fill=(255, 255, 255))
 
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)
54
  draw.text((10, 10), f"Old size: {old_size}\nDuration: {int(1000 * (end_time - start_time))}ms\n<{prompt}>", fill=(255, 255, 255))