In this tutorial, we introduce the design of transforms pipeline in MMSegmentation.
The structure of this guide is as follows:
-[Data Transforms](#data-transforms)
-[Design of Data pipelines](#design-of-data-pipelines)
-[Customization data transformation](#customization-data-transformation)
## Design of Data pipelines
Following typical conventions, we use `Dataset` and `DataLoader` for data loading
...
...
@@ -10,13 +18,31 @@ we introduce a new `DataContainer` type in MMCV to help collect and distribute
data of different size.
See [here](https://github.com/open-mmlab/mmcv/blob/master/mmcv/parallel/data_container.py) for more details.
The data preparation pipeline and the dataset is decomposed. Usually a dataset
In 1.x version of MMSegmentation, all data transformations are inherited from [`BaseTransform`](https://github.com/open-mmlab/mmcv/blob/2.x/mmcv/transforms/base.py#L6).
The input and output types of transformations are both dict. A simple example is as follows: