Skip to content

Commit

Permalink
[Fix] Replace np.float by default float in segmentation evaluation (
Browse files Browse the repository at this point in the history
  • Loading branch information
filaPro authored May 17, 2023
1 parent 737c29f commit 22aaa47
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 22aaa47

Please # to comment.