Skip to content

Commit

Permalink
change img path
Browse files Browse the repository at this point in the history
  • Loading branch information
tingsong committed Jul 30, 2019
1 parent dca1afe commit 409e21e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Code/4_viewer/6_hook_for_grad_cam.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,9 @@ def gen_cam(feature_map, grads):
if __name__ == '__main__':

BASE_DIR = os.path.dirname(os.path.abspath(__file__))
path_img = os.path.join(BASE_DIR, "../../Data/cam_img/", "test_img_8.png")
path_img = "/Users/tingsongyu/Desktop/t.png"
path_net = os.path.join(BASE_DIR, "../../Data/", "net_params_72p.pkl")
output_dir = os.path.join(BASE_DIR, "../../Result/backward_hook_cam/")
path_img = os.path.join(BASE_DIR, "..", "..", "Data/cam_img/", "test_img_8.png")
path_net = os.path.join(BASE_DIR, "..", "..", "Data/", "net_params_72p.pkl")
output_dir = os.path.join(BASE_DIR, "..", "..", "Result/backward_hook_cam/")

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

0 comments on commit 409e21e

Please sign in to comment.