Skip to content

Commit 409e21e

Browse files
author
tingsong
committedJul 30, 2019
change img path
1 parent dca1afe commit 409e21e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed
 

‎Code/4_viewer/6_hook_for_grad_cam.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,9 @@ def gen_cam(feature_map, grads):
130130
if __name__ == '__main__':
131131

132132
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
133-
path_img = os.path.join(BASE_DIR, "../../Data/cam_img/", "test_img_8.png")
134-
path_img = "/Users/tingsongyu/Desktop/t.png"
135-
path_net = os.path.join(BASE_DIR, "../../Data/", "net_params_72p.pkl")
136-
output_dir = os.path.join(BASE_DIR, "../../Result/backward_hook_cam/")
133+
path_img = os.path.join(BASE_DIR, "..", "..", "Data/cam_img/", "test_img_8.png")
134+
path_net = os.path.join(BASE_DIR, "..", "..", "Data/", "net_params_72p.pkl")
135+
output_dir = os.path.join(BASE_DIR, "..", "..", "Result/backward_hook_cam/")
137136

138137
classes = ('plane', 'car', 'bird', 'cat', 'deer', 'dog', 'frog', 'horse', 'ship', 'truck')
139138
fmap_block = list()

0 commit comments

Comments
 (0)