[TUTORIAL] Fix downloaded file path (#2590)
authorMORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Tue, 12 Feb 2019 15:36:39 +0000 (00:36 +0900)
committerTianqi Chen <tqchen@users.noreply.github.com>
Tue, 12 Feb 2019 15:36:39 +0000 (07:36 -0800)
vta/tutorials/resnet.py

index 8bdb53d15583eb5c862d9ebd65a9fdf450ed2183..45bd9edf3ad5254bb038f39199a71f3e7d9897a8 100644 (file)
@@ -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())