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
mmdetection3d
Commits
22aaa47f
Unverified
Commit
22aaa47f
authored
May 17, 2023
by
Danila Rukhovich
Committed by
GitHub
May 17, 2023
Browse files
[Fix] Replace `np.float` by default `float` in segmentation evaluation (#2527)
parent
737c29f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
mmdet3d/evaluation/functional/scannet_utils/evaluate_semantic_instance.py
...on/functional/scannet_utils/evaluate_semantic_instance.py
+1
-2
No files found.
mmdet3d/evaluation/functional/scannet_utils/evaluate_semantic_instance.py
View file @
22aaa47f
...
@@ -25,8 +25,7 @@ def evaluate_matches(matches, class_labels, options):
...
@@ -25,8 +25,7 @@ def evaluate_matches(matches, class_labels, options):
dist_confs
=
[
options
[
'distance_confs'
][
0
]]
dist_confs
=
[
options
[
'distance_confs'
][
0
]]
# results: class x overlap
# results: class x overlap
ap
=
np
.
zeros
((
len
(
dist_threshes
),
len
(
class_labels
),
len
(
overlaps
)),
ap
=
np
.
zeros
((
len
(
dist_threshes
),
len
(
class_labels
),
len
(
overlaps
)))
np
.
float
)
for
di
,
(
min_region_size
,
distance_thresh
,
distance_conf
)
in
enumerate
(
for
di
,
(
min_region_size
,
distance_thresh
,
distance_conf
)
in
enumerate
(
zip
(
min_region_sizes
,
dist_threshes
,
dist_confs
)):
zip
(
min_region_sizes
,
dist_threshes
,
dist_confs
)):
for
oi
,
overlap_th
in
enumerate
(
overlaps
):
for
oi
,
overlap_th
in
enumerate
(
overlaps
):
...
...
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