OmerFarooq commited on
Commit
bafae09
1 Parent(s): 3576575

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -54,10 +54,10 @@ def create_heatmap(model, imgs, class_index):
54
 
55
  #predicting the images and getting the conv outputs and predictions from the gradcam model
56
  with tf.GradientTape() as tape:
57
- maps, preds = model(imgs);
58
 
59
- # class_channel = tf.expand_dims(preds[:,class_index],axis = 1)
60
- class_channel = preds[:, class_index]
61
 
62
  #computing gradients of predictions w.r.t the feature maps
63
  if class_index == -1:
 
54
 
55
  #predicting the images and getting the conv outputs and predictions from the gradcam model
56
  with tf.GradientTape() as tape:
57
+ maps, preds = model(imgs);
58
 
59
+ # class_channel = tf.expand_dims(preds[:,class_index],axis = 1)
60
+ class_channel = preds[:, class_index]
61
 
62
  #computing gradients of predictions w.r.t the feature maps
63
  if class_index == -1: