Git Product home page Git Product logo

Comments (6)

dakshvar22 avatar dakshvar22 commented on July 3, 2024

@anayebi Why have you closed the issue?

from keras-extra.

anayebi avatar anayebi commented on July 3, 2024

Already answered here (putting the link for reference): keras-team/keras#2646 (comment)

from keras-extra.

dakshvar22 avatar dakshvar22 commented on July 3, 2024

@anayebi Can you give me the link to Keras 0.3.0?

from keras-extra.

anayebi avatar anayebi commented on July 3, 2024

If you already have Keras 1.0.2 installed, isn't it easier for you to just use the TimeDistributed wrapper on Convolution2D? It ought to do the same thing as TimeDistributedConvolution2D.

from keras-extra.

dakshvar22 avatar dakshvar22 commented on July 3, 2024

@anayebi ok i used the exact same example code that you have provided in the README -
model.add(TimeDistributed(Convolution2D(8, 4, 4, border_mode='valid', input_shape=(10,1,32,32)))) model.add(TimeDistributed(MaxPooling2D(pool_size=(2, 2),border_mode='valid'))) model.add(Activation('relu')) model.add(TimeDistributed(Convolution2D(8, 3, 3, border_mode='valid'))) model.add(Activation('relu')) model.add(TimeDistributedFlatten()) model.add(Activation('relu')) model.add(GRU(output_dim=100,return_sequences=True)) model.add(GRU(output_dim=50,return_sequences=False)) model.add(Dropout(.2)) model.add(Dense(1))

I still get an error -

File "/home/toothless/daksh/ml/project/src/model/model2.py", line 133, in buildModel
model.add(TimeDistributed(Convolution2D(8, 4, 4, border_mode='valid', input_shape=(10,1,32,32))))
File "/usr/local/lib/python2.7/dist-packages/keras/models.py", line 102, in add
raise Exception('The first layer in a Sequential model must '
Exception: The first layer in a Sequential model must get an input_shape or batch_input_shape argument.

I have added the input_shape argument to the first layer, but still it throws an error. Please help me out.

from keras-extra.

dakshvar22 avatar dakshvar22 commented on July 3, 2024

@anayebi Just to add.. I am getting the following error while building the model itself. I have not used model.fit() still.

from keras-extra.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.