Compose¶
- class mmcv.transforms.Compose(transforms: Union[Dict, Callable[[Dict], Dict], Sequence[Union[Dict, Callable[[Dict], Dict]]]])[源代码]¶
Compose multiple transforms sequentially.
- 参数
transforms (list[dict | callable]) – Sequence of transform object or config dict to be composed.
实际案例
>>> pipeline = [ >>> dict(type='Compose', >>> transforms=[ >>> dict(type='LoadImageFromFile'), >>> dict(type='Normalize') >>> ] >>> ) >>> ]