Commit 2add274d authored by limm's avatar limm
Browse files

fix np.bool to np.bool_ support numpy>1.20

parent 63e10e00
......@@ -26,7 +26,7 @@ class TestVisualizer(unittest.TestCase):
polygons = [[_rand_poly() for _ in range(np.random.randint(1, 5))] for _ in range(N)]
mask = np.zeros_like(img[:, :, 0], dtype=np.bool)
mask = np.zeros_like(img[:, :, 0], dtype=np.bool_)
mask[:40, 10:20] = 1
labels = [str(i) for i in range(N)]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment