提交 409e21e3 编写于 作者: T tingsong

change img path

上级 dca1afe3
......@@ -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()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册