Shilpaj commited on
Commit
9ea8844
·
verified ·
1 Parent(s): bf3fe71

Fix: Runtime error

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -87,7 +87,7 @@ def inference(input_img,
87
  target_layers = [eval(f'model.{_layers[target_layer_number-1]}[0]')]
88
 
89
  # Get the class activations from the selected layer
90
- cam = GradCAM(model=model, target_layers=target_layers, use_cuda=False)
91
  grayscale_cam = cam(input_tensor=input_img, targets=None)
92
  grayscale_cam = grayscale_cam[0, :]
93
 
 
87
  target_layers = [eval(f'model.{_layers[target_layer_number-1]}[0]')]
88
 
89
  # Get the class activations from the selected layer
90
+ cam = GradCAM(model=model, target_layers=target_layers)
91
  grayscale_cam = cam(input_tensor=input_img, targets=None)
92
  grayscale_cam = grayscale_cam[0, :]
93