asitstands commented on issue #10575: [MXNET-145] Remove global PRNGs of numpy 
and python used in mx.image package
URL: https://github.com/apache/incubator-mxnet/pull/10575#issuecomment-381871354
 
 
   A simple benchmark using `ImageIter` shows a bad performance degradation. On 
Xeon E5-2680, the current master runs the following code in about 28s. The time 
is increased to 42s if this PR is applied. It is 50% increase of the running 
time.
   ```python
   start = time.time()
   data = mx.img.ImageIter(
                batch_size=32,
                data_shape=(3, 224, 224),
                path_imgrec='caltech.rec', # 9144 image samples
                rand_crop=True,
                rand_resize=True,
                rand_mirror=True,
                rand_gray=0.5,
                brightness=0.5,
                contrast=0.5,
                saturation=0.5)
   for i in data:
        pass
   mx.nd.waitall()
   end = time.time()
   print("elapsed time: ", end - start)
   ```

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to