3

I'm getting this error(here) while trainng a convolutional Neural Network in keras. (ipython on Windows 8.1).

I've checked the numpy cofiguration. It says it has blas_mkl but no OpenBLAS. Is blas_mkl not sufficient?

I was trying to install OpenBLAS by following the steps from theano's page (here):

  1. I was not able to compile OpenBLAS with "quickbuild.win32 1>log.txt 2>err.txt" command from MinGW shell/cmd. a dialogue box poped up saying to choose a program to run it.

  2. Hence, couldn't extract libopenblas.dll

  3. And its very unclear as to how to modify the .theanorc or .theanorc.txt

Could someone please help me to install OpenBLAS on windows so that I can work with keras on ipython.

vivek
  • 349
  • 1
  • 4
  • 12
  • Could you specify what is your Windows Python installation? Have you installed Python by Anaconda package? Have any model ever worked on your system? – Marcin Możejko Jun 01 '16 at 10:55
  • Yes, I've installed python from Anaconda. There were no issues faced while training normal Neural nets in keras. I faced this issue only while trying convolutional nets – vivek Jun 01 '16 at 11:01
  • What version of Anaconda do you have? – Marcin Możejko Jun 01 '16 at 11:09
  • Anaconda2-4.0.0 for windows 64 bit and python 2.7 – vivek Jun 01 '16 at 11:13
  • In this case - this has a MKL Libraries installed. So you should try to set theano.config.openmp = True. – Marcin Możejko Jun 01 '16 at 11:58
  • I tried **theano.config.openmp = True** at the beginning of the code. It didn't work. If I can compile OpenBLAS with mingw and extract libopenblas.dll, I think the problem would be solved. But I'm not able to do this. – vivek Jun 02 '16 at 08:10
  • Have you seen this question : http://stackoverflow.com/questions/36965010/theano-cnn-on-cpu-abstractconv2d-theano-optimization-failed – Marcin Możejko Jun 02 '16 at 23:10
  • Yes, I've seen the question. mingw in my system doesn't have msys. So I used cygwin to extract libopenblas.dll. I've set theano.config.blas.ldflags = "-LX:\\YYY\\YYY -lopenblas" as suggested by theano's installation guide. Now, when I run the CNN in keras, it is showing "DLL load failed" error. LInk: https://github.com/Vivek-B/Kaggle/blob/master/Digit%20Recognition/Conv-2D_Keras.ipynb – vivek Jun 04 '16 at 06:53
  • And it hasn't helped? – Marcin Możejko Jun 04 '16 at 06:56

0 Answers0