cntk-hotel-pictures-classificator icon indicating copy to clipboard operation
cntk-hotel-pictures-classificator copied to clipboard

ImportError: No module named 'utils.cython_modules.cython_bbox'

Open TreeLLi opened this issue 6 years ago • 4 comments

I know this error has been widely discussed and here are some specifications I found for this program.

  1. The default cython binaries in the directory 'Detection/utils/cython_modules/' only support for particular version, 3.4(Linux) and 3.5(Windows), of Python. So anyone who got the error info like the title should checks if your Python version is suitable.

  2. The latest cython module binaries have been updated on the repo of CNTK. But after copying the corresponding binaries for Python 3.5(Linux), i.e. cpu_nms.cpython-35m.so and cython_bbox.cpython-35m.so, into the directory of current project 'Detection/utils/cython_modules/', it still reports the same error as the title during compilation, while the program will run well if I change my Python to 3.4 by Anaconda virtual environment and run the same project, i.e. same directory and same program.

  3. Another solution for this problem is to recompile the above cython modules by ourselves following instructions from CNTK Guide. The lucky thing is that the program can pass the compilation without any error report, while unfortunately it produces/prints some unknown error info during the training.

All of my testing are run on the latest DSVM for Linux. Default Python: Python 3.5 with CNTK 2.2 Python 3.4 Virtual Environment: Python 3.4 with CNTK 2.1

TreeLLi avatar Jan 24 '18 10:01 TreeLLi