mathDR / reading-text-in-the-wild

A Keras/Theano implementation of "Reading Text in the Wild with Convolutional Neural Networks" by M Jaderberg et.al.
GNU General Public License v3.0
116 stars 30 forks source link

Getting error while running make model #5

Closed rremani closed 7 years ago

rremani commented 7 years ago

Getting attribute error, I followed all the steps but could not make the model, Please look into it.

(keras)ce@com19:~/Documents/reading-text-in-the-wild/DICT2$ python make_keras_dictnet_model.py Using Theano backend. Using gpu device 0: GeForce GTX 1080 (CNMeM is disabled, CuDNN 5105) /home/ce/.virtualenvs/keras/local/lib/python2.7/site-packages/theano/sandbox/cuda/init.py:600: UserWarning: Your CuDNN version is more recent then Theano. If you see problems, try updating Theano or downgrading CuDNN to version 4. warnings.warn(warn) Traceback (most recent call last): File "make_keras_dictnet_model.py", line 87, in model.compile(loss='categorical_crossentropy', optimizer=sgd) File "/home/ce/.virtualenvs/keras/local/lib/python2.7/site-packages/keras/models.py", line 507, in compile self.y_train = self.get_output(train=True) File "/home/ce/.virtualenvs/keras/local/lib/python2.7/site-packages/keras/layers/containers.py", line 130, in get_output return self.layers[-1].get_output(train) File "/home/ce/.virtualenvs/keras/local/lib/python2.7/site-packages/keras/layers/core.py", line 1030, in get_output X = self.get_input(train) File "/home/ce/.virtualenvs/keras/local/lib/python2.7/site-packages/keras/layers/core.py", line 241, in get_input previous_output = self.previous.get_output(train=train) File "/home/ce/.virtualenvs/keras/local/lib/python2.7/site-packages/keras/layers/core.py", line 703, in get_output X = self.get_input(train) File "/home/ce/.virtualenvs/keras/local/lib/python2.7/site-packages/keras/layers/core.py", line 241, in get_input previous_output = self.previous.get_output(train=train) File "/home/ce/.virtualenvs/keras/local/lib/python2.7/site-packages/keras/layers/core.py", line 1030, in get_output X = self.get_input(train) File "/home/ce/.virtualenvs/keras/local/lib/python2.7/site-packages/keras/layers/core.py", line 241, in get_input previous_output = self.previous.get_output(train=train) File "/home/ce/.virtualenvs/keras/local/lib/python2.7/site-packages/keras/layers/core.py", line 703, in get_output X = self.get_input(train) File "/home/ce/.virtualenvs/keras/local/lib/python2.7/site-packages/keras/layers/core.py", line 241, in get_input previous_output = self.previous.get_output(train=train) File "/home/ce/.virtualenvs/keras/local/lib/python2.7/site-packages/keras/layers/core.py", line 1030, in get_output X = self.get_input(train) File "/home/ce/.virtualenvs/keras/local/lib/python2.7/site-packages/keras/layers/core.py", line 241, in get_input previous_output = self.previous.get_output(train=train) File "/home/ce/.virtualenvs/keras/local/lib/python2.7/site-packages/keras/layers/core.py", line 900, in get_output X = self.get_input(train) File "/home/ce/.virtualenvs/keras/local/lib/python2.7/site-packages/keras/layers/core.py", line 241, in get_input previous_output = self.previous.get_output(train=train) File "/home/ce/.virtualenvs/keras/local/lib/python2.7/site-packages/keras/layers/convolutional.py", line 310, in get_output X = self.get_input(train) File "/home/ce/.virtualenvs/keras/local/lib/python2.7/site-packages/keras/layers/core.py", line 241, in get_input previous_output = self.previous.get_output(train=train) File "/home/ce/.virtualenvs/keras/local/lib/python2.7/site-packages/keras/layers/convolutional.py", line 683, in get_output X = self.get_input(train) File "/home/ce/.virtualenvs/keras/local/lib/python2.7/site-packages/keras/layers/core.py", line 241, in get_input previous_output = self.previous.get_output(train=train) File "/home/ce/.virtualenvs/keras/local/lib/python2.7/site-packages/keras/layers/convolutional.py", line 1225, in get_output return K.custom_spatial_2d_padding(X, padding=self.padding, AttributeError: 'module' object has no attribute 'custom_spatial_2d_padding'

mathDR commented 7 years ago

Did you close this issue because you fixed it?

rremani commented 7 years ago

Ya, I fixed it. It was installation problem as my theano_backend.py was in layers folder but the code was importing from backend folder where it could not find that file. After installing again it worked.