Shortcuts

Transpose

class mmcls.datasets.transforms.Transpose(keys, order)[source]

Transpose numpy array.

Required Keys:

  • *keys

Modified Keys:

  • *keys

Parameters
  • keys (List[str]) – The fields to convert to tensor.

  • order (List[int]) – The output dimensions order.

transform(results)[source]

Method to transpose array.

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.