Skip to content

Commit

Permalink
fixing confidence computation (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjw0205 authored Jul 29, 2023
1 parent fc3b470 commit fb1f722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evaluation/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def _preprocess_distance_and_confidence(pred_all, gt_all):
pred_loc = pred_cls[:, :2].reshape([-1, 1, 2])
gt_loc = gt_cls[:, :2].reshape([1, -1, 2])
distance = np.linalg.norm(pred_loc - gt_loc, axis=2)
confidence = pred_cls[:, 2]
confidence = pred_cls[:, 3]

one_sample_result[cls_idx] = (distance, confidence)

Expand Down

0 comments on commit fb1f722

Please sign in to comment.