SC-CAM icon indicating copy to clipboard operation
SC-CAM copied to clipboard

About color of cam

Open henry189 opened this issue 11 months ago • 2 comments

For the CAM visualization, I want to use a blue background and red for attention, how do I convert it in the code?

henry189 avatar Mar 11 '24 08:03 henry189

已收到邮件,谢谢

hust-lidelong avatar Mar 11 '24 08:03 hust-lidelong

I haved sovled this issue.In https://github.com/Juliachang/SC-CAM/blob/191ec486e38eabbdfcd951c78e0d5689992161a3/tool/infer_utils.py#L30 hm = plt.cm.hot(hm)[:, :, :3] I changed hot to jet

henry189 avatar Mar 11 '24 08:03 henry189