PILToNumpy¶
- class mmpretrain.datasets.transforms.PILToNumpy(to_bgr=False, dtype=None)[源代码]¶
Convert img to
numpy.ndarray
.Required Keys:
img
Modified Keys:
img
- 参数:
- transform(results)[源代码]¶
Method to convert img to
numpy.ndarray
.
Convert img to numpy.ndarray
.
Required Keys:
img
Modified Keys:
img
Method to convert img to numpy.ndarray
.