Skip to content

Commit

Permalink
fix-visualizer (open-mmlab#2210)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zheng-LinXiao authored Apr 12, 2023
1 parent c8ec77b commit 3fe9fba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mmpose/visualization/local_visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ def _draw_instances_kpts(self,
neck = np.mean(keypoints_info[:, [5, 6]], axis=1)
# neck score when visualizing pred
neck[:, 2:4] = np.logical_and(
keypoints_info[:, 5, 2:4] < kpt_thr,
keypoints_info[:, 6, 2:4] < kpt_thr).astype(int)
keypoints_info[:, 5, 2:4] > kpt_thr,
keypoints_info[:, 6, 2:4] > kpt_thr).astype(int)
new_keypoints_info = np.insert(
keypoints_info, 17, neck, axis=1)

Expand Down

0 comments on commit 3fe9fba

Please sign in to comment.