Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

Commit

Permalink
fix the docstring of label2yoloblx
Browse files Browse the repository at this point in the history
  • Loading branch information
hirotomusiker committed Apr 12, 2019
1 parent a49e708 commit e76ea5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,10 @@ def label2yolobox(labels, info_img, maxsize, lrflip):
Transform coco labels to yolo box labels
Args:
labels (numpy.ndarray): label data whose shape is :math:`(N, 5)`.
Each label consists of [class, x1, y1, x2, y2] where \
Each label consists of [class, x, y, w, h] where \
class (float): class index.
x1, y1, x2, y2 (float) : coordinates of \
left-top and right-bottom points of bounding boxes.
x, y, w, h (float) : coordinates of \
left-top points, width, and height of a bounding box.
Values range from 0 to width or height of the image.
info_img : tuple of h, w, nh, nw, dx, dy.
h, w (int): original shape of the image
Expand Down

0 comments on commit e76ea5c

Please sign in to comment.