face01lib.damo_yolo.damo_internal.structures package
Submodules
face01lib.damo_yolo.damo_internal.structures.bounding_box module
- class BoxList(bbox, image_size, mode='xyxy')[ソース]
ベースクラス:
object
This class represents a set of bounding boxes. The bounding boxes are represented as a Nx4 Tensor. In order to uniquely determine the bounding boxes with respect to an image, we also store the corresponding image dimensions. They can contain extra information that is specific to each bounding box, such as labels.
- crop(box)[ソース]
Cropss a rectangular region from this bounding box. The box is a 4-tuple defining the left, upper, right, and lower pixel coordinate.
face01lib.damo_yolo.damo_internal.structures.boxlist_ops module
- boxlist_iou(boxlist1, boxlist2)[ソース]
Compute the intersection over union of two set of boxes. The box order must be (xmin, ymin, xmax, ymax). :param box1: (BoxList) bounding boxes, sized [N,4]. :param box2: (BoxList) bounding boxes, sized [M,4].
- 戻り値:
(tensor) iou, sized [N,M].