Skip to content

Commit 8c2d3fa

Browse files
authored
fix and op bug (open-mmlab#2286)
1 parent d7711cb commit 8c2d3fa

File tree

1 file changed

+1
-1
lines changed
  • mmpose/evaluation/functional

1 file changed

+1
-1
lines changed

mmpose/evaluation/functional/nms.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def oks_iou(g: np.ndarray,
102102
dy = yd - yg
103103
e = (dx**2 + dy**2) / vars / ((a_g + a_d[n_d]) / 2 + np.spacing(1)) / 2
104104
if vis_thr is not None:
105-
ind = list(vg > vis_thr) and list(vd > vis_thr)
105+
ind = list((vg > vis_thr) & (vd > vis_thr))
106106
e = e[ind]
107107
ious[n_d] = np.sum(np.exp(-e)) / len(e) if len(e) != 0 else 0.0
108108
return ious

0 commit comments

Comments
 (0)