Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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[
|
| 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
|