Skip to content

Commit

Permalink
remove the duplicate mINP code
Browse files Browse the repository at this point in the history
  • Loading branch information
JinkaiZheng committed Sep 5, 2023
1 parent a93a4c2 commit 37aaf29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opengait/evaluation/metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def evaluate_rank(distmat, p_lbls, g_lbls, max_rank=50):

cmc = raw_cmc.cumsum()

pos_idx = np.where(raw_cmc == 1) # 返回坐标,此处raw_cmc为一维矩阵,所以返回相当于index
pos_idx = np.where(raw_cmc == 1)
max_pos_idx = np.max(pos_idx)
inp = cmc[max_pos_idx] / (max_pos_idx + 1.0)
all_INP.append(inp)
Expand Down

0 comments on commit 37aaf29

Please sign in to comment.