Spaces:
Runtime error
Runtime error
Upload Model_Class.py
Browse files- 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.
|
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))
|