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

Commit 7151c4b

Browse files
authored
Merge pull request #294 from Hakuyume/bltr-tlbr
bottom left, top right -> top left, bottom right
2 parents 1f960c6 + 083b260 commit 7151c4b

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

chainercv/datasets/voc/voc_detection_dataset.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class VOCDetectionDataset(chainer.dataset.DatasetMixin):
2929
:math:`(R, 4)`, where :math:`R` is the number of bounding boxes in
3030
the image. The second axis represents attributes of the bounding box.
3131
They are :obj:`(y_min, x_min, y_max, x_max)`, where the
32-
four attributes are coordinates of the bottom left and the top right
32+
four attributes are coordinates of the top left and the bottom right
3333
vertices.
3434
3535
The labels are packed into a one dimensional tensor of shape :math:`(R,)`.

chainercv/transforms/bbox/flip_bbox.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ def flip_bbox(bbox, size, y_flip=False, x_flip=False):
55
tensor of shape :math:`(R, 4)`, where :math:`R` is the number of
66
bounding boxes in the image. The second axis represents attributes of
77
the bounding box. They are :obj:`(y_min, x_min, y_max, x_max)`,
8-
where the four attributes are coordinates of the bottom left and the
9-
top right vertices.
8+
where the four attributes are coordinates of the top left and the
9+
bottom right vertices.
1010
1111
Args:
1212
bbox (~numpy.ndarray): An array whose shape is :math:`(R, 4)`.

chainercv/transforms/bbox/resize_bbox.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ def resize_bbox(bbox, in_size, out_size):
55
tensor of shape :math:`(R, 4)`, where :math:`R` is the number of
66
bounding boxes in the image. The second axis represents attributes of
77
the bounding box. They are :obj:`(y_min, x_min, y_max, x_max)`,
8-
where the four attributes are coordinates of the bottom left and the
9-
top right vertices.
8+
where the four attributes are coordinates of the top left and the
9+
bottom right vertices.
1010
1111
Args:
1212
bbox (~numpy.ndarray): An array whose shape is :math:`(R, 4)`.

chainercv/transforms/bbox/translate_bbox.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ def translate_bbox(bbox, y_offset=0, x_offset=0):
1010
tensor of shape :math:`(R, 4)`, where :math:`R` is the number of
1111
bounding boxes in the image. The second axis represents attributes of
1212
the bounding box. They are :obj:`(y_min, x_min, y_max, x_max)`,
13-
where the four attributes are coordinates of the bottom left and the
14-
top right vertices.
13+
where the four attributes are coordinates of the top left and the
14+
bottom right vertices.
1515
1616
Args:
1717
bbox (~numpy.ndarray): Bounding boxes to be transformed. The shape is

0 commit comments

Comments
 (0)