marcellacornia / sam

Predicting Human Eye Fixations via an LSTM-based Saliency Attentive Model. IEEE Transactions on Image Processing (2018)
https://ieeexplore.ieee.org/document/8400593
MIT License
205 stars 76 forks source link

TypeError: 'module' object is not callable #21

Closed yan-michael closed 5 years ago

yan-michael commented 5 years ago

Hi All,

I have been getting the following error:

Using Theano backend. Traceback (most recent call last): File "main.py", line 63, in m = Model(input=[x, x_maps], output=sam_resnet([x, x_maps])) File "/Users/MichaelYan/sam/models.py", line 130, in sam_resnet dcn = dcn_resnet(input_tensor=x[0]) File "/Users/MichaelYan/sam/dcn_resnet.py", line 143, in dcn_resnet x = conv_block(x, 3, [64, 64, 256], stage=2, block='a', strides=(1, 1)) File "/Users/MichaelYan/sam/dcn_resnet.py", line 66, in conv_block x = merge([x, shortcut], mode='sum') TypeError: 'module' object is not callable

Any ideas for the cause? Thanks!

marcellacornia commented 5 years ago

Hi @yan-michael, thanks for downloading our code.

Which Keras and Theano versions are you using? Our code is compatible with Keras 1.1.0 and Theano 0.9.0.