types
Browse files
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)
|