Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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