PuzzleCAM icon indicating copy to clipboard operation
PuzzleCAM copied to clipboard

How to visualize the cam map

Open jimmy130 opened this issue 2 years ago • 3 comments

Hi, I wonder how to visualize the cam map as your paper?

jimmy130 avatar Mar 21 '22 11:03 jimmy130

me too.

Hi, I wonder how to visualize the cam map as your paper?

TAILEMI avatar Mar 22 '22 03:03 TAILEMI

me too.

Hi, I wonder how to visualize the cam map as your paper?

Asking the same

vdelight avatar Jun 01 '22 23:06 vdelight

Please try according to the code below and then you will get visualized cam feature maps.

 ...
 cam_dict = np.load(pred_dir + image_id + '.npy', allow_pickle=True).item() 
        
 keys = cam_dict['keys']
 cams = cam_dict['hr_cam']
 cam_color = cv2.applyColorMap(cams, 2)
 ...

YingLv1106 avatar Aug 19 '22 09:08 YingLv1106