{"type":"rich","categories":["DL"],"height":"190","author_url":"https://blog.hatena.ne.jp/HTN20190109/","url":"https://htn20190109.hatenablog.com/entry/2026/01/10/172605","version":"1.0","blog_url":"https://htn20190109.hatenablog.com/","blog_title":"HTN20190109\u306e\u65e5\u8a18","provider_url":"https://hatena.blog","image_url":null,"author_name":"HTN20190109","published":"2026-01-10 17:26:05","title":"Grad-CAM","provider_name":"Hatena Blog","width":"100%","description":"import torchimport numpy as npimport cv2import matplotlib.pyplot as plt from torchvision.models import vgg16, VGG16_Weightsfrom torchvision import transforms from pytorch_grad_cam import GradCAM, GradCAMPlusPlus, ScoreCAM, HiResCAM, XGradCAM, EigenCAM, AblationCAM, FullGradfrom pytorch_grad_cam.util\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhtn20190109.hatenablog.com%2Fentry%2F2026%2F01%2F10%2F172605\" title=\"Grad-CAM - HTN20190109\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}