Commit
·
910b004
1
Parent(s):
4f25fa8
Update visualization/floorplan.py
Browse files
visualization/floorplan.py
CHANGED
|
@@ -29,7 +29,7 @@ def draw_floorplan(xz, fill_color=None, border_color=None, side_l=512, show_radi
|
|
| 29 |
if fill_color is None:
|
| 30 |
fill_color = [1]
|
| 31 |
|
| 32 |
-
board = np.zeros([side_l, side_l, len(fill_color)], dtype=np.
|
| 33 |
|
| 34 |
if show_radius is None:
|
| 35 |
show_radius = np.linalg.norm(xz, axis=-1).max()
|
|
@@ -101,7 +101,7 @@ def draw_iou_floorplan(dt_xz, gt_xz, show_radius=None, show=False, side_l=512,
|
|
| 101 |
gt_floorplan = Image.fromarray((gt_floorplan * 255).astype(np.uint8), mode='RGBA')
|
| 102 |
iou_floorplan = Image.alpha_composite(gt_floorplan, dt_floorplan)
|
| 103 |
|
| 104 |
-
back = np.zeros([side_l, side_l, len(fill_color)], dtype=np.
|
| 105 |
back[..., :] = [0.8, 0.8, 0.8, 1]
|
| 106 |
back = Image.fromarray((back * 255).astype(np.uint8), mode='RGBA')
|
| 107 |
|
|
|
|
| 29 |
if fill_color is None:
|
| 30 |
fill_color = [1]
|
| 31 |
|
| 32 |
+
board = np.zeros([side_l, side_l, len(fill_color)], dtype=np.float32)
|
| 33 |
|
| 34 |
if show_radius is None:
|
| 35 |
show_radius = np.linalg.norm(xz, axis=-1).max()
|
|
|
|
| 101 |
gt_floorplan = Image.fromarray((gt_floorplan * 255).astype(np.uint8), mode='RGBA')
|
| 102 |
iou_floorplan = Image.alpha_composite(gt_floorplan, dt_floorplan)
|
| 103 |
|
| 104 |
+
back = np.zeros([side_l, side_l, len(fill_color)], dtype=np.float32)
|
| 105 |
back[..., :] = [0.8, 0.8, 0.8, 1]
|
| 106 |
back = Image.fromarray((back * 255).astype(np.uint8), mode='RGBA')
|
| 107 |
|