Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -137,7 +137,7 @@ def predict():
|
|
137 |
input_tensor = transform(img).unsqueeze(0)
|
138 |
|
139 |
# Grad-CAM setup
|
140 |
-
target_layer_name = "features.
|
141 |
gradcam = GradCAM(model, target_layer_name)
|
142 |
|
143 |
# Forward pass
|
|
|
137 |
input_tensor = transform(img).unsqueeze(0)
|
138 |
|
139 |
# Grad-CAM setup
|
140 |
+
target_layer_name = "features.2.local_spatial_conv3"
|
141 |
gradcam = GradCAM(model, target_layer_name)
|
142 |
|
143 |
# Forward pass
|