Commit 77718f8e by MORITA Kazutaka Committed by Tianqi Chen

[TUTORIAL] Fix downloaded file path (#2590)

parent 89deaa6b
......@@ -147,8 +147,7 @@ if not os.path.exists(data_dir):
# Download files
for file in [categ_fn, graph_fn, params_fn]:
if not os.path.isfile(file):
download(os.path.join(url, file), os.path.join(data_dir, file))
download(os.path.join(url, file), os.path.join(data_dir, file))
# Read in ImageNet Categories
synset = eval(open(os.path.join(data_dir, categ_fn)).read())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment