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 2017/12/12 23:32:21 UTC
[incubator-mxnet] branch master updated: Adding .png to the list of
allowed extensions in the im2rec.py (#9043)
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 087a906 Adding .png to the list of allowed extensions in the im2rec.py (#9043)
087a906 is described below
commit 087a906e33396680ddeef8de932ab193d4587cf5
Author: Eric Junyuan Xie <pi...@users.noreply.github.com>
AuthorDate: Tue Dec 12 15:32:17 2017 -0800
Adding .png to the list of allowed extensions in the im2rec.py (#9043)
---
tools/im2rec.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/im2rec.py b/tools/im2rec.py
index ec6de19..911a65c 100644
--- a/tools/im2rec.py
+++ b/tools/im2rec.py
@@ -216,7 +216,7 @@ def parse_args():
help='If this is set im2rec will create image list(s) by traversing root folder\
and output to <prefix>.lst.\
Otherwise im2rec will read <prefix>.lst and create a database at <prefix>.rec')
- cgroup.add_argument('--exts', nargs='+', default=['.jpeg', '.jpg'],
+ cgroup.add_argument('--exts', nargs='+', default=['.jpeg', '.jpg', '.png'],
help='list of acceptable image extensions.')
cgroup.add_argument('--chunks', type=int, default=1, help='number of chunks.')
cgroup.add_argument('--train-ratio', type=float, default=1.0,
--
To stop receiving notification emails like this one, please contact
['"commits@mxnet.apache.org" <co...@mxnet.apache.org>'].