You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/05/14 05:46:13 UTC

[GitHub] tornadomeet closed pull request #10926: fix shuffle

tornadomeet closed pull request #10926: fix shuffle
URL: https://github.com/apache/incubator-mxnet/pull/10926
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/tools/im2rec.py b/tools/im2rec.py
index ef3e3f3cf74..0097469274a 100755
--- a/tools/im2rec.py
+++ b/tools/im2rec.py
@@ -72,7 +72,7 @@ def write_list(path_out, image_list):
 def make_list(args):
     image_list = list_image(args.root, args.recursive, args.exts)
     image_list = list(image_list)
-    if args.shuffle is True:
+    if args.no_shuffle is False:
         random.seed(100)
         random.shuffle(image_list)
     N = len(image_list)


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services