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

Improve appearence of y_offset and x_offset in doc #475

Merged
merged 1 commit into from
Nov 29, 2017
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion chainercv/transforms/bbox/translate_bbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ def translate_bbox(bbox, y_offset=0, x_offset=0):
This method is mainly used together with image transforms, such as padding
and cropping, which translates the left top point of the image from
coordinate :math:`(0, 0)` to coordinate
:math:`(y, x) = (y\_offset, x\_offset)`.
:math:`(y, x) = (y_{offset}, x_{offset})`.

The bounding boxes are expected to be packed into a two dimensional
tensor of shape :math:`(R, 4)`, where :math:`R` is the number of
Expand Down
2 changes: 1 addition & 1 deletion chainercv/transforms/keypoint/translate_keypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ def translate_keypoint(keypoint, y_offset=0, x_offset=0):

This method is mainly used together with image transforms, such as padding
and cropping, which translates the top left point of the image
to the coordinate :math:`(y, x) = (y\_offset, x\_offset)`.
to the coordinate :math:`(y, x) = (y_{offset}, x_{offset})`.

Args:
keypoint (~numpy.ndarray): Keypoints in the image.
Expand Down