towhee.trainer.utils.plot_utils.show_transform(image_path: str, transform: Any, sample_num: int = 6)[source]

Show the result which torchvision.transforms or any other callable function act on the image. Only the Image transforms is supported. Such as ToTensor or Normalize is invalid. :param image_path: The original image path. :type image_path: str :param transform: torchvision.transforms` or any other callable function. :type transform: Any :param sample_num: Sample number. :type sample_num: int