Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

vis_keypoint --> vis_point #525

Merged
merged 5 commits into from
Mar 6, 2018
Merged

vis_keypoint --> vis_point #525

merged 5 commits into from
Mar 6, 2018

Conversation

yuyu2172
Copy link
Member

@yuyu2172 yuyu2172 commented Feb 27, 2018

This change is based on the new naming convention (keypoint, kp_mask --> point, mask) #507

all keypoints in :obj:`keypoint` will be displayed.
of the points.
mask (~numpy.ndarray, optional): A boolean array whose shape is
:math:`(P,)`. If :math:`i` th index is :obj:`True`, the
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:math:i th index -> :math:i th element

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

:math:`i` th keypoint is not displayed. If not specified,
all keypoints in :obj:`keypoint` will be displayed.
of the points.
mask (~numpy.ndarray, optional): A boolean array whose shape is
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

optional in the type description may be against to our convention.
c.f. https://github.com/chainer/chainercv/blob/master/chainercv/visualizations/vis_bbox.py#L27-L29


cm = plot.get_cmap('gist_rainbow')

colors = [cm(1. * i / n_kp) for i in six.moves.range(n_kp)]
colors = [cm(1. * i / n_point) for i in six.moves.range(n_point)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can write cm(i / n_point) with from __feature__ import division.

mask (~numpy.ndarray): A boolean array whose shape is
:math:`(P,)`. If :math:`i` th element is :obj:`True`, the
:math:`i` th point is not displayed. If not specified,
all points in :obj:`point` will be displayed.
ax (matplotlib.axes.Axes, optional): If provided, plot on this axis.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

optional

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my bad

Copy link
Member

@Hakuyume Hakuyume left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Hakuyume Hakuyume merged commit 6f8f502 into chainer:master Mar 6, 2018
@yuyu2172 yuyu2172 deleted the vis-point branch March 6, 2018 05:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants