keras-extra
keras-extra copied to clipboard
Issue with TimeDistributedConvolution2D
n_hidden = 256 n_samples = 100 n_timesteps = 16
model = Sequential() model.add(TimeDistributedConvolution2D(32, 5, 5, border_mode='same', input_shape=(n_timesteps, 28, 28))) model.add(TimeDistributedMaxPooling2D(pool_size=(nb_pool, nb_pool))) model.add(Activation('relu')) model.add(TimeDistributedFlatten()) model.add(LSTM(256, return_sequences=True)) model.add(TimeDistributedDense(nb_classes)) model.add(Activation('softmax'))
the above code throws error as http://pastebin.com/E319wGeg
I am getting the following error when I also run the baove code:
Using TensorFlow backend.
Traceback (most recent call last):
File "/usr/lib/pycharm-community/helpers/pydev/pydevd.py", line 1556, in
Same error here
I have the same error. Is this the version problem?
My problem solved as I figured that keras already has TimeDistributed layers and we don't need these extra layers anymore.
On Feb 16, 2017, at 8:24 AM, David Chen [email protected] wrote:
I have the same error. Is this the version problem?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
@amir-abdi thanks for your information, I'll give it a try!