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/01/23 22:51:59 UTC

[GitHub] aaronmarkham opened a new issue #9532: image prediction tutorial is broken

aaronmarkham opened a new issue #9532: image prediction tutorial is broken
URL: https://github.com/apache/incubator-mxnet/issues/9532
 
 
   ## Description
   This notebook is broken - `list index out of range` error:
   http://mxnet.incubator.apache.org/tutorials/python/predict_image.html
   
   ## Environment info (Required)
   
   ```
   (mxnet3.6) 8c8590217d260a:tools markhama$ python diagnose.py 
   ----------Python Info----------
   Version      : 3.6.2
   Compiler     : GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.42)
   Build        : ('default', 'Jul 17 2017 16:44:45')
   Arch         : ('64bit', '')
   ------------Pip Info-----------
   Version      : 9.0.1
   Directory    : /Users/markhama/Development/mxnet3.6/lib/python3.6/site-packages/pip
   ----------MXNet Info-----------
   Version      : 1.0.1
   Directory    : /Users/markhama/Development/mxnet3.6/lib/python3.6/site-packages/mxnet
   Commit Hash   : deb25bca9803cac338faedb2eb14dfda22813b75
   ----------System Info----------
   Platform     : Darwin-16.7.0-x86_64-i386-64bit
   system       : Darwin
   node         : 8c8590217d260a.ant.amazon.com
   release      : 16.7.0
   version      : Darwin Kernel Version 16.7.0: Wed Oct  4 00:17:00 PDT 2017; root:xnu-3789.71.6~1/RELEASE_X86_64
   ----------Hardware Info----------
   machine      : x86_64
   processor    : i386
   b'machdep.cpu.extfeatures: SYSCALL XD 1GBPAGE EM64T LAHF LZCNT PREFETCHW RDTSCP TSCI'
   b'machdep.cpu.leaf7_features: SMEP ERMS RDWRFSGS TSC_THREAD_OFFSET BMI1 HLE AVX2 BMI2 INVPCID RTM SMAP RDSEED ADX IPT SGX FPU_CSDS MPX CLFSOPT'
   b'machdep.cpu.features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH DS ACPI MMX FXSR SSE SSE2 SS HTT TM PBE SSE3 PCLMULQDQ DTES64 MON DSCPL VMX SMX EST TM2 SSSE3 FMA CX16 TPR PDCM SSE4.1 SSE4.2 x2APIC MOVBE POPCNT AES PCID XSAVE OSXSAVE SEGLIM64 TSCTMR AVX1.0 RDRAND F16C'
   b'machdep.cpu.brand_string: Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz'
   ----------Network Test----------
   Setting timeout: 10
   Timing for MXNet: https://github.com/apache/incubator-mxnet, DNS: 0.0158 sec, LOAD: 0.5998 sec.
   Timing for Gluon Tutorial(en): http://gluon.mxnet.io, DNS: 0.0211 sec, LOAD: 0.1110 sec.
   Timing for Gluon Tutorial(cn): https://zh.gluon.ai, DNS: 0.0224 sec, LOAD: 0.1084 sec.
   Timing for FashionMNIST: https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/gluon/dataset/fashion-mnist/train-labels-idx1-ubyte.gz, DNS: 0.0304 sec, LOAD: 0.1810 sec.
   Timing for PYPI: https://pypi.python.org/pypi/pip, DNS: 0.0170 sec, LOAD: 0.1214 sec.
   Timing for Conda: https://repo.continuum.io/pkgs/free/, DNS: 0.0179 sec, LOAD: 0.0722 sec.
   
   ```
   
   ## Build info (Required if built from source)
   
   MXNet commit hash:
   9688cd2cce001087cb6eec1dd0153424dd40eac8
   
   ## Error Message:
   ```
   ---------------------------------------------------------------------------
   IndexError                                Traceback (most recent call last)
   <ipython-input-29-be7ee579c867> in <module>()
   ----> 1 predict('http://writm.com/wp-content/uploads/2016/08/Cat-hd-wallpapers.jpg')
   
   <ipython-input-28-af1a292cf8dd> in predict(url)
        34     for i in a[0:5]:
        35         print(i)
   ---> 36         print('probability=%f, class=%s' %(prob[i], labels[i]))
   
   IndexError: list index out of range
   ```
   
   ## Steps to reproduce
   
   1. Run till you get to the cell that calls predict:
   ```
   predict('http://writm.com/wp-content/uploads/2016/08/Cat-hd-wallpapers.jpg')
   ```
   

----------------------------------------------------------------
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