Mojo
commited on
Commit
·
f0a9511
1
Parent(s):
216206d
Added files
Browse files- modules/visualize.py +1 -1
modules/visualize.py
CHANGED
@@ -129,7 +129,7 @@ def plot_gradcam_images(
|
|
129 |
# Initialize the GradCAM object
|
130 |
# https://github.com/jacobgil/pytorch-grad-cam/blob/master/pytorch_grad_cam/grad_cam.py
|
131 |
# https://github.com/jacobgil/pytorch-grad-cam/blob/master/pytorch_grad_cam/base_cam.py
|
132 |
-
cam = GradCAM(model=model, target_layers=target_layers
|
133 |
|
134 |
# Iterate through the images and plot them in the grid along with class labels
|
135 |
for img_index in range(1, num_images + 1):
|
|
|
129 |
# Initialize the GradCAM object
|
130 |
# https://github.com/jacobgil/pytorch-grad-cam/blob/master/pytorch_grad_cam/grad_cam.py
|
131 |
# https://github.com/jacobgil/pytorch-grad-cam/blob/master/pytorch_grad_cam/base_cam.py
|
132 |
+
cam = GradCAM(model=model, target_layers=target_layers)
|
133 |
|
134 |
# Iterate through the images and plot them in the grid along with class labels
|
135 |
for img_index in range(1, num_images + 1):
|