cvtools.data_augs package

Module contents

class cvtools.data_augs.Compose(transforms)[源代码]

基类:object

Composes several augmentations together. :param transforms: list of transforms to compose. :type transforms: List[Transform]

Example

>>> augmentations.Compose([
>>>     transforms.CenterCrop(10),
>>>     transforms.ToTensor(),
>>> ])
class cvtools.data_augs.ToAbsoluteCoords[源代码]

基类:object

class cvtools.data_augs.ToPercentCoords[源代码]

基类:object

class cvtools.data_augs.ConvertFromInts[源代码]

基类:object

class cvtools.data_augs.RandomSaturation(lower=0.5, upper=1.5)[源代码]

基类:object

class cvtools.data_augs.RandomHue(delta=18.0)[源代码]

基类:object

class cvtools.data_augs.RandomLightingNoise[源代码]

基类:object

class cvtools.data_augs.ConvertColor(current='BGR', transform='HSV')[源代码]

基类:object

class cvtools.data_augs.RandomContrast(lower=0.5, upper=1.5)[源代码]

基类:object

class cvtools.data_augs.RandomBrightness(delta=32)[源代码]

基类:object

class cvtools.data_augs.PhotometricDistort[源代码]

基类:object

class cvtools.data_augs.RandomSampleCrop[源代码]

基类:object

Crop :param img: the image being input during training :type img: Image :param boxes: the original bounding boxes in pt form :type boxes: Tensor :param labels: the class labels for each bbox :type labels: Tensor :param mode: the min and max jaccard overlaps :type mode: float tuple

返回:
(img, boxes, classes)
img (Image): the cropped image boxes (Tensor): the adjusted bounding boxes in pt form labels (Tensor): the class labels for each bbox
class cvtools.data_augs.Expand(mean)[源代码]

基类:object

class cvtools.data_augs.RandomRotate[源代码]

基类:object

随机旋转0度、90度、180度、270度

class cvtools.data_augs.RandomVerMirror[源代码]

基类:object

竖直方向(flipping around the x-axis)镜像

class cvtools.data_augs.RandomHorMirror[源代码]

基类:object

水平方向(flipping around the y-axis)镜像

class cvtools.data_augs.RandomMirror(both=True)[源代码]

基类:object