You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by zh...@apache.org on 2018/03/25 03:32:45 UTC
[incubator-mxnet] branch master updated: Fix the order of
`path.join` and `path.expanduser` (#10236)
This is an automated email from the ASF dual-hosted git repository.
zhasheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
The following commit(s) were added to refs/heads/master by this push:
new 0ca6dd2 Fix the order of `path.join` and `path.expanduser` (#10236)
0ca6dd2 is described below
commit 0ca6dd29cb923c59925c76981bfd5a632a72a8ca
Author: Ligeng Zhu <Ly...@users.noreply.github.com>
AuthorDate: Sat Mar 24 20:32:39 2018 -0700
Fix the order of `path.join` and `path.expanduser` (#10236)
It seems the order of `join` and `expanduser` are somehow reversed.
---
example/gluon/data.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/example/gluon/data.py b/example/gluon/data.py
index c996c9a..56e8906 100644
--- a/example/gluon/data.py
+++ b/example/gluon/data.py
@@ -80,7 +80,7 @@ def get_imagenet_iterator(root, batch_size, num_workers, data_shape=224, dtype='
train_data = DataLoader(train_dataset, batch_size, shuffle=True,
last_batch='discard', num_workers=num_workers)
val_dir = os.path.join(root, 'val')
- if not os.path.isdir(os.path.join(os.path.expanduser(root, 'val', 'n01440764'))):
+ if not os.path.isdir(os.path.expanduser(os.path.join(root, 'val', 'n01440764'))):
user_warning = 'Make sure validation images are stored in one subdir per category, a helper script is available at https://git.io/vNQv1'
raise ValueError(user_warning)
logging.info("Loading image folder %s, this may take a bit long...", val_dir)
--
To stop receiving notification emails like this one, please contact
zhasheng@apache.org.