RandomApply¶
- class mmcv.transforms.RandomApply(transforms: Union[Dict, Callable[[Dict], Dict], List[Union[Dict, Callable[[Dict], Dict]]]], prob: float = 0.5)[源代码]¶
Apply transforms randomly with a given probability.
- 参数
实际案例
>>> # config >>> pipeline = [ >>> dict(type='RandomApply', >>> transforms=[dict(type='HorizontalFlip')], >>> prob=0.3) >>> ]