Shortcuts

NumpyToPIL

class mmpretrain.datasets.transforms.NumpyToPIL(to_rgb=False)[source]

Convert the image from OpenCV format to PIL.Image.Image.

Required Keys:

  • img

Modified Keys:

  • img

Parameters:

to_rgb (bool) – Whether to convert img to rgb. Defaults to True.

transform(results)[source]

Method to convert images to PIL.Image.Image.

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

Free document hosting provided by Read the Docs.