Closed Mageshwaran2314 closed 5 years ago
Hi @Mageshwaran2314, thanks for downloading our code.
Please check your Keras and Theano versions. Our code is compatible with Keras 1.1.0 and Theano 0.9.0.
yes I try to run this code with keras 2.1.3
I made some changes to the code, after that, I got this error
Using Theano backend.
Traceback (most recent call last):
File "main.py", line 63, in ' + new_arg + '
. Stick to the latter!')
TypeError: For the strides
argument, the layer received both the legacy keyword argument subsample
and the Keras 2 keyword argument strides
. Stick to the latter!
Help me with this
It seems that you are still using Keras 2.
You have to check your keras.json
file. It should be in the following format:
{
"image_dim_ordering": "th",
"epsilon": 1e-07,
"floatx": "float32",
"backend": "theano"
}
already I change this { "floatx": "float32", "epsilon": 1e-07, "image_dim_ordering": "th", "backend": "theano" }
Traceback (most recent call last):
File "/home/bl/PycharmProjects/Predicting Human Eye Fixations via an LSTM-based Saliency Attentive Model/main.py", line 66, in
import keras print keras.version import theano as th print th.version
2.0.3 0.8.2
Traceback (most recent call last):
File "/home/bl/PycharmProjects/Predicting Human Eye Fixations via an LSTM-based Saliency Attentive Model/main.py", line 77, in
initial_state = K.conv2d(initial_state, K.zeros((self.nb_filters_out, self.nb_filters_in, 1, 1)), padding='same') This solves the issue
Hi help me to rectify this error
Traceback (most recent call last): File "main.py", line 63, in
m = Model(input=[x, x_maps], output=sam_resnet([x, x_maps]))
File "E:\sam-master\models.py", line 136, in sam_resnet
nb_cols=3, nb_rows=3)(att_convlstm)
File "C:\ProgramData\Anaconda3\lib\site-packages\keras\engine\topology.py", line 617, in call
output = self.call(inputs, **kwargs)
File "E:\sam-master\attentive_convlstm.py", line 143, in call
initial_states = self.get_initial_states(x)
File "E:\sam-master\attentive_convlstm.py", line 42, in get_initial_states
initial_state = K.conv2d(initial_state, K.zeros((self.nb_filters_out, self.nb_filters_in, 1, 1)), border_mode='same')
TypeError: conv2d() got an unexpected keyword argument 'border_mode'