Diff of /functions/gradcam.m [000000] .. [1422d3]

Switch to side-by-side view

--- a
+++ b/functions/gradcam.m
@@ -0,0 +1,7 @@
+function [convMap,dScoresdMap] = gradcam(dlnet, dlImg, softmaxName, convLayerName, classfn)
+
+[scores,convMap] = predict(dlnet, dlImg, 'Outputs', {softmaxName, convLayerName});
+classScore = scores(classfn);
+dScoresdMap = dlgradient(classScore,convMap);
+
+end