Skip to content

Commit

Permalink
[Fix] fix a bug when visualize keypoint indices (#2631)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-Louis authored Aug 18, 2023
1 parent 91c0a84 commit 14e0d67
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mmpose/visualization/local_visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,11 +345,10 @@ def _draw_instances_kpts(self,
alpha=transparency,
line_widths=self.radius)
if show_kpt_idx:
kpt[0] += self.radius
kpt[1] -= self.radius
kpt_idx_coords = kpt + [self.radius, -self.radius]
self.draw_texts(
str(kid),
kpt,
kpt_idx_coords,
colors=color,
font_sizes=self.radius * 3,
vertical_alignments='bottom',
Expand Down

0 comments on commit 14e0d67

Please sign in to comment.