towhee.models.visualization.clip_visualization.show_image_relevance

towhee.models.visualization.clip_visualization.show_image_relevance(image_relevance: ~torch.Tensor, img_tensor: ~torch.Tensor, orig_image: <module 'PIL.Image' from '/home/docs/checkouts/readthedocs.org/user_builds/towhee/envs/main/lib/python3.9/site-packages/PIL/Image.py'>)[source]

Show the image relevance heatmap. :param image_relevance: Image relevance. :type image_relevance: torch.Tensor :param img_tensor: Transformed image tensor. :type img_tensor: torch.Tensor :param orig_image: Original input image. :type orig_image: Image