mirror of
https://github.com/open-mmlab/mmsegmentation.git
synced 2025-06-03 22:03:48 +08:00
* Fix typo in usage example * [Feature] Add CutOut transform * CutOut repr covered by unittests * Cutout ignore index, test * ignore_index -> seg_fill_in, defualt is None * seg_fill_in is added to repr * test is modified for seg_fill_in is None * seg_fill_in (int), 0-255 * add seg_fill_in test * doc string for seg_fill_in * rename CutOut to RandomCutOut, add prob * Add unittest when cutout is False
19 lines
918 B
Python
19 lines
918 B
Python
# Copyright (c) OpenMMLab. All rights reserved.
|
|
from .compose import Compose
|
|
from .formatting import (Collect, ImageToTensor, ToDataContainer, ToTensor,
|
|
Transpose, to_tensor)
|
|
from .loading import LoadAnnotations, LoadImageFromFile
|
|
from .test_time_aug import MultiScaleFlipAug
|
|
from .transforms import (CLAHE, AdjustGamma, Normalize, Pad,
|
|
PhotoMetricDistortion, RandomCrop, RandomCutOut,
|
|
RandomFlip, RandomRotate, Rerange, Resize, RGB2Gray,
|
|
SegRescale)
|
|
|
|
__all__ = [
|
|
'Compose', 'to_tensor', 'ToTensor', 'ImageToTensor', 'ToDataContainer',
|
|
'Transpose', 'Collect', 'LoadAnnotations', 'LoadImageFromFile',
|
|
'MultiScaleFlipAug', 'Resize', 'RandomFlip', 'Pad', 'RandomCrop',
|
|
'Normalize', 'SegRescale', 'PhotoMetricDistortion', 'RandomRotate',
|
|
'AdjustGamma', 'CLAHE', 'Rerange', 'RGB2Gray', 'RandomCutOut'
|
|
]
|