PotholeDetection icon indicating copy to clipboard operation
PotholeDetection copied to clipboard

CAM visualization error

Open gowtham1997 opened this issue 6 years ago • 0 comments

Hey, Thanks for this amazing repository. I was trying to visualize the CAM maps in solution.ipynb but run into an error when I try to run overlay = img.array_to_img(valid_cam[0]).resize((800,600), Image.BILINEAR).convert('RGB'). valid_cam[0] has shape of (10,10,128) and you're trying to reshape it to (800,600,3) and hence it throws an error. I also tried visualizing the output of the last conv layer(instead of 2nd last which is used in the code) which has shape of (10,10,1) and the cam is getting generated but I can't see any activation maps near the potholes(see pic below).

image

gowtham1997 avatar Aug 11 '18 21:08 gowtham1997