Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
detectron2
Commits
2add274d
Commit
2add274d
authored
Apr 28, 2025
by
limm
Browse files
fix np.bool to np.bool_ support numpy>1.20
parent
63e10e00
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/test_visualizer.py
tests/test_visualizer.py
+1
-1
No files found.
tests/test_visualizer.py
View file @
2add274d
...
...
@@ -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
)]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment