Skip to content

Commit

Permalink
align color
Browse files Browse the repository at this point in the history
  • Loading branch information
LareinaM committed Oct 5, 2023
1 parent a7f7939 commit a0ae68a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mmpose/visualization/local_visualizer_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def _draw_3d_instances_kpts(keypoints,

x_3d, y_3d, z_3d = np.split(kpts_valid[:, :3], [1, 2], axis=1)

kpt_color = kpt_color[valid][..., ::-1] / 255.
kpt_color = kpt_color[valid] / 255.

ax.scatter(x_3d, y_3d, z_3d, marker='o', c=kpt_color)

Expand Down Expand Up @@ -230,7 +230,7 @@ def _draw_3d_instances_kpts(keypoints,
if kpt_score.min() > kpt_thr and kpt_score_2d.min(
) > kpt_thr:
# matplotlib uses RGB color in [0, 1] value range
_color = link_color[sk_id][::-1] / 255.
_color = link_color[sk_id] / 255.
ax.plot(
xs_3d, ys_3d, zs_3d, color=_color, zdir='z')

Expand Down

0 comments on commit a0ae68a

Please sign in to comment.