ToNumpy¶
- class mmcls.datasets.transforms.ToNumpy(keys, dtype=None)[源代码]¶
将对象转变为
numpy.ndarray
Required Keys:
*keys**
Modified Keys:
*keys**
- 参数
dtype (str, optional) – The dtype of the converted numpy array. Defaults to None.
- transform(results)[源代码]¶
Method to convert object to
numpy.ndarray
.