From dbe698c125a7b580ae47465b0147ef6e2efe7b08 Mon Sep 17 00:00:00 2001 From: Danila Rukhovich Date: Sun, 14 May 2023 15:34:17 +0400 Subject: [PATCH] fix np.float as it is deprecated --- .../functional/scannet_utils/evaluate_semantic_instance.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mmdet3d/evaluation/functional/scannet_utils/evaluate_semantic_instance.py b/mmdet3d/evaluation/functional/scannet_utils/evaluate_semantic_instance.py index 2b15747ef..1b931c530 100644 --- a/mmdet3d/evaluation/functional/scannet_utils/evaluate_semantic_instance.py +++ b/mmdet3d/evaluation/functional/scannet_utils/evaluate_semantic_instance.py @@ -25,8 +25,7 @@ def evaluate_matches(matches, class_labels, options): dist_confs = [options['distance_confs'][0]] # results: class x overlap - ap = np.zeros((len(dist_threshes), len(class_labels), len(overlaps)), - np.float) + ap = np.zeros((len(dist_threshes), len(class_labels), len(overlaps))) for di, (min_region_size, distance_thresh, distance_conf) in enumerate( zip(min_region_sizes, dist_threshes, dist_confs)): for oi, overlap_th in enumerate(overlaps):