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

bottom left, top right -> top left, bottom right #294

Merged
merged 2 commits into from
Jun 23, 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/datasets/voc/voc_detection_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class VOCDetectionDataset(chainer.dataset.DatasetMixin):
:math:`(R, 4)`, where :math:`R` is the number of bounding boxes in
the image. The second axis represents attributes of the bounding box.
They are :obj:`(y_min, x_min, y_max, x_max)`, where the
four attributes are coordinates of the bottom left and the top right
four attributes are coordinates of the top left and the bottom right
vertices.

The labels are packed into a one dimensional tensor of shape :math:`(R,)`.
Expand Down
4 changes: 2 additions & 2 deletions chainercv/transforms/bbox/flip_bbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ def flip_bbox(bbox, size, y_flip=False, x_flip=False):
tensor of shape :math:`(R, 4)`, where :math:`R` is the number of
bounding boxes in the image. The second axis represents attributes of
the bounding box. They are :obj:`(y_min, x_min, y_max, x_max)`,
where the four attributes are coordinates of the bottom left and the
top right vertices.
where the four attributes are coordinates of the top left and the
bottom right vertices.

Args:
bbox (~numpy.ndarray): An array whose shape is :math:`(R, 4)`.
Expand Down
4 changes: 2 additions & 2 deletions chainercv/transforms/bbox/resize_bbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ def resize_bbox(bbox, in_size, out_size):
tensor of shape :math:`(R, 4)`, where :math:`R` is the number of
bounding boxes in the image. The second axis represents attributes of
the bounding box. They are :obj:`(y_min, x_min, y_max, x_max)`,
where the four attributes are coordinates of the bottom left and the
top right vertices.
where the four attributes are coordinates of the top left and the
bottom right vertices.

Args:
bbox (~numpy.ndarray): An array whose shape is :math:`(R, 4)`.
Expand Down
4 changes: 2 additions & 2 deletions chainercv/transforms/bbox/translate_bbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ def translate_bbox(bbox, y_offset=0, x_offset=0):
tensor of shape :math:`(R, 4)`, where :math:`R` is the number of
bounding boxes in the image. The second axis represents attributes of
the bounding box. They are :obj:`(y_min, x_min, y_max, x_max)`,
where the four attributes are coordinates of the bottom left and the
top right vertices.
where the four attributes are coordinates of the top left and the
bottom right vertices.

Args:
bbox (~numpy.ndarray): Bounding boxes to be transformed. The shape is
Expand Down