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

Change interface of vis_point #809

Merged
merged 8 commits into from
Apr 3, 2019
Merged

Conversation

yuyu2172
Copy link
Member

Assume point as [(K, 2)] instead of (K, 2).

@yuyu2172 yuyu2172 added this to the 0.13 milestone Feb 21, 2019

:obj:`img`, ":math:`(3, H, W)`", :obj:`float32`, \
"RGB, :math:`[0, 255]`"
:obj:`point`, ":math:`[(K, 2)]`", :obj:`float32`, ":math:`(y, x)`"
Copy link
Member

Choose a reason for hiding this comment

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

If we assumes all instances have the same K, it should be (N, K, 2) (N is the number of instances).

Copy link
Member

Choose a reason for hiding this comment

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

In #808, R is used for the number of instances. It's better to make them consistent.

Copy link
Member Author

Choose a reason for hiding this comment

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

We don't assume that all instances have the same K for this function.
That is why I left the documentation to accept lists.

Copy link
Member

Choose a reason for hiding this comment

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

So, these two lines should be like (~numpy.ndarray or list of arrays).

point (~numpy.ndarray): See the table below.
visible (~numpy.ndarray): See the table below.

@yuyu2172
Copy link
Member Author

fixed


:obj:`img`, ":math:`(3, H, W)`", :obj:`float32`, \
"RGB, :math:`[0, 255]`"
:obj:`point`, ":math:`[(K, 2)]` or :math:`(R, K, 2)`", \
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah. Thanks

"RGB, :math:`[0, 255]`"
:obj:`point`, ":math:`(R, K, 2)` or :math:`[(K, 2)]`", \
:obj:`float32`, ":math:`(y, x)`"
:obj:`visible`, ":math:`[(K,)]` or :math:`(R, K)`", :obj:`bool`, --
Copy link
Member

Choose a reason for hiding this comment

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

":math:`(R, K)` or :math:`[(K,)]`"

@Hakuyume Hakuyume merged commit 2d8db9b into chainer:master Apr 3, 2019
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.

None yet

2 participants