dhruv2842 commited on
Commit
edcb5de
Β·
verified Β·
1 Parent(s): 9aea561

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -110,7 +110,7 @@ def predict():
110
  confidence = float(probabilities[class_index])
111
 
112
  # βœ… Grad-CAM++ setup
113
- target_layer = model.features[0].norm5
114
  cam_model = GradCAMPlusPlus(model=model, target_layers=[target_layer])
115
 
116
  # βœ… Get Grad-CAM++ map
 
110
  confidence = float(probabilities[class_index])
111
 
112
  # βœ… Grad-CAM++ setup
113
+ target_layer = model.features[2].global_spatial_conv
114
  cam_model = GradCAMPlusPlus(model=model, target_layers=[target_layer])
115
 
116
  # βœ… Get Grad-CAM++ map