Open mikbuch opened 9 months ago
In utils add:
heatmap = cv2.applyColorMap(np.uint8(255 * mask.cpu().squeeze()), cv2.COLORMAP_JET)
Line 15
Then it will work
I re-created the repository, indent to modify it further: https://github.com/mikbuch/gradcam-pytorch-pet. Thank you Konny for creating this very useful example.
Current versions of modules (January 2024).