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

I'm confused about some lines of code in the 'infer_cam.py'

Open Jamie-obj opened this issue 2 years ago • 2 comments

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

Jamie-obj avatar Mar 01 '22 01:03 Jamie-obj

I'm confused, too.

Dreamupers avatar Mar 01 '22 07:03 Dreamupers

That's for test time data augmentation.

Take a look at the dataloader, some images were flipped, it simply flips it back.

WeiChihChern avatar Aug 25 '22 18:08 WeiChihChern