SC-CAM
SC-CAM copied to clipboard
I'm confused about some lines of code in the 'infer_cam.py'
Could you explain why the code need flip operation in the lines 64 through 66? Several papers hava also used this operation.
if i % 2 == 1: cam = np.flip(cam, axis=-1) return cam
I'm confused, too.
That's for test time data augmentation.
Take a look at the dataloader, some images were flipped, it simply flips it back.