avisingh599 / visual-qa

[Reimplementation Antol et al 2015] Keras-based LSTM/CNN models for Visual Question Answering
https://avisingh599.github.io/deeplearning/visual-qa/
MIT License
480 stars 186 forks source link

TypeError: __init__() takes exactly 2 arguments (1 given) #28

Open SeekPoint opened 7 years ago

SeekPoint commented 7 years ago

rzai@rzai00:~/prj/visual-qa/scripts$ CUDA_VISIBLE_DEVICES=1 python trainLSTM_1.py Using Theano backend. Using gpu device 0: GeForce GTX 1080 (CNMeM is disabled, cuDNN 5105) Traceback (most recent call last): File "trainLSTM_1.py", line 122, in main() File "trainLSTM_1.py", line 59, in main image_model.add(Reshape(input_shape = (img_dim,), dims=(img_dim,))) TypeError: init() takes exactly 2 arguments (1 given) rzai@rzai00:~/prj/visual-qa/scripts$