Shortcuts

ToNumpy

class mmcls.datasets.transforms.ToNumpy(keys, dtype=None)[source]

Convert object to numpy.ndarray.

Required Keys:

  • *keys**

Modified Keys:

  • *keys**

Parameters

dtype (str, optional) – The dtype of the converted numpy array. Defaults to None.

transform(results)[source]

Method to convert object to numpy.ndarray.

Read the Docs v: 1.x
Versions
master
latest
1.x
dev-1.x
Downloads
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.