FJDorfner commited on
Commit
575d757
1 Parent(s): 0a4bf92

Upload Model_Class.py

Browse files
Files changed (1) hide show
  1. 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.gpu_model.layer4[-1]]
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)