Compose¶
- class mmcv.transforms.Compose(transforms: Union[Dict, Callable[[Dict], Dict], Sequence[Union[Dict, Callable[[Dict], Dict]]]])[source]¶
Compose multiple transforms sequentially.
- Parameters
transforms (list[dict | callable]) – Sequence of transform object or config dict to be composed.
Examples
>>> pipeline = [ >>> dict(type='Compose', >>> transforms=[ >>> dict(type='LoadImageFromFile'), >>> dict(type='Normalize') >>> ] >>> ) >>> ]