Shortcuts

Transpose

class mmcls.datasets.transforms.Transpose(keys, order)[源代码]

Transpose numpy array.

Required Keys:

  • *keys

Modified Keys:

  • *keys

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

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

transform(results)[源代码]

Method to transpose array.