From 22aaa47fdb53ce1870ff92cb7e3f96ae38d17f61 Mon Sep 17 00:00:00 2001 From: Danila Rukhovich Date: Wed, 17 May 2023 05:18:04 +0400 Subject: [PATCH] [Fix] Replace `np.float` by default `float` in segmentation evaluation (#2527) --- .../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):