Skip to content

Commit

Permalink
[command] get_iou_thrs_array: interval include endpoint (#1775)
Browse files Browse the repository at this point in the history
get_iou_thrs_array: interval include endpoint

Co-authored-by: ymir <ymir@intellif.com>
  • Loading branch information
fenrir-z and ymir authored Aug 21, 2023
1 parent 023c154 commit 6944468
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ymir/command/mir/tools/eval/eval_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ def get_iou_thrs_array(iou_thrs_str: str) -> np.ndarray:
return np.array([iou_thr_from])
return np.linspace(start=iou_thr_from,
stop=iou_thr_to,
num=int(np.round((iou_thr_to - iou_thr_from) / iou_thr_step)),
endpoint=False)
num=int(np.round((iou_thr_to - iou_thr_from) / iou_thr_step)) + 1,
endpoint=True)


def calc_averaged_evaluations(dataset_evaluation: mirpb.SingleDatasetEvaluation, class_ids: Collection[int]) -> None:
Expand Down

0 comments on commit 6944468

Please sign in to comment.