"...text-generation-inference.git" did not exist on "408dbc485c112e023a97fc959d4cb3721cf89fed"
Commit bcc07308 authored by limm's avatar limm
Browse files

Merge branch 'fix_np' into 'v0.6-release'

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

See merge request !4
parents 63e10e00 2add274d
...@@ -26,7 +26,7 @@ class TestVisualizer(unittest.TestCase): ...@@ -26,7 +26,7 @@ class TestVisualizer(unittest.TestCase):
polygons = [[_rand_poly() for _ in range(np.random.randint(1, 5))] for _ in range(N)] 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 mask[:40, 10:20] = 1
labels = [str(i) for i in range(N)] 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