Shortcuts

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.

Read the Docs v: mmcls-1.x
Versions
latest
stable
mmcls-1.x
mmcls-0.x
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.