BaseTransform¶
- class mmcv.transforms.BaseTransform[source]¶
Base class for all transformations.
- abstract transform(results: Dict) → Optional[Union[Dict, Tuple[List, List]]][source]¶
The transform function. All subclass of BaseTransform should override this method.
This function takes the result dict as the input, and can add new items to the dict or modify existing items in the dict. And the result dict will be returned in the end, which allows to concate multiple transforms into a pipeline.