FJDorfner commited on
Commit
0695ece
1 Parent(s): fbff24b

Upload Model_Class.py

Browse files
Files changed (1) hide show
  1. Model_Class.py +1 -1
Model_Class.py CHANGED
@@ -94,7 +94,7 @@ def make_GradCAM(image, device):
94
  aug_smooth=False,
95
  eigen_smooth=True,
96
  )
97
- grayscale_cam = grayscale_cam.to('cpu').squeeze()
98
 
99
  jet = plt.colormaps.get_cmap("inferno")
100
  newcolors = jet(np.linspace(0, 1, 256))
 
94
  aug_smooth=False,
95
  eigen_smooth=True,
96
  )
97
+ grayscale_cam = grayscale_cam.squeeze()
98
 
99
  jet = plt.colormaps.get_cmap("inferno")
100
  newcolors = jet(np.linspace(0, 1, 256))