saliency icon indicating copy to clipboard operation
saliency copied to clipboard

Update Examples_core.ipynb grad-cam to calculate wrt single class

Open bwedin opened this issue 3 years ago • 0 comments

One-line change: adds output_layer = output_layer[:,target_class_idx] to the else statement in def call_model_function. This means that previously Grad-CAM was calculating wrt the entire output layer, this should fix it to only be wrt a single class.

bwedin avatar Dec 02 '22 18:12 bwedin