Spaces:
Runtime error
Runtime error
Upload Model_Class.py
Browse files- Model_Class.py +1 -1
Model_Class.py
CHANGED
@@ -82,7 +82,7 @@ def make_GradCAM(image, device):
|
|
82 |
gpu_model = model.to(device)
|
83 |
image = image.to(device)
|
84 |
model.eval()
|
85 |
-
target_layers = [gpu_model.
|
86 |
|
87 |
arr = image.numpy().squeeze()
|
88 |
cam = GradCAM(model=gpu_model, target_layers=target_layers)
|
|
|
82 |
gpu_model = model.to(device)
|
83 |
image = image.to(device)
|
84 |
model.eval()
|
85 |
+
target_layers = [gpu_model.model.layer4[-1]]
|
86 |
|
87 |
arr = image.numpy().squeeze()
|
88 |
cam = GradCAM(model=gpu_model, target_layers=target_layers)
|