We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7711cb commit 8c2d3faCopy full SHA for 8c2d3fa
mmpose/evaluation/functional/nms.py
@@ -102,7 +102,7 @@ def oks_iou(g: np.ndarray,
102
dy = yd - yg
103
e = (dx**2 + dy**2) / vars / ((a_g + a_d[n_d]) / 2 + np.spacing(1)) / 2
104
if vis_thr is not None:
105
- ind = list(vg > vis_thr) and list(vd > vis_thr)
+ ind = list((vg > vis_thr) & (vd > vis_thr))
106
e = e[ind]
107
ious[n_d] = np.sum(np.exp(-e)) / len(e) if len(e) != 0 else 0.0
108
return ious
0 commit comments