[TUTORIAL] Fix downloaded file path (#2590)

This commit is contained in:
MORITA Kazutaka 2019-02-13 00:36:39 +09:00 коммит произвёл Tianqi Chen
Родитель 89deaa6b28
Коммит 77718f8e11
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -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())