-
Notifications
You must be signed in to change notification settings - Fork 303
Conversation
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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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)] |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
optional
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my bad
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This change is based on the new naming convention (
keypoint, kp_mask --> point, mask
) #507