Git Product home page Git Product logo

Comments (5)

jamesmf avatar jamesmf commented on June 24, 2024

Okay I already see at least one thing wrong here.

I was imagining hooking up the last time-step's output from the RNN to a vanilla Dense network. Does that make sense? Or does this implementation depend on the output vector having the same time dimension as the input?

from keras-extra.

anayebi avatar anayebi commented on June 24, 2024

Yeah if return_sequences=False, then you do want a Dense network, not a TimeDistributedDense.

I think the issue is with your input_shape argument. You mention that X_train is of the shape (60000, 196, 1, 15, 15). If that's the case, then your input_shape to the first TimeDistributedConvolution2D layer should be input_shape=(196,1, 15, 15).

Also, as a sanity check what version of Keras are you using? I can only guarantee support for version 0.3.0 and lower.

from keras-extra.

jamesmf avatar jamesmf commented on June 24, 2024

Yep, I'm using 0.3.0.

Yeah the input shape was the issue - I was focused on the error and not really checking the code.

It seems to be working now. I'll post a link with the working code and then close the issue.

Thanks

from keras-extra.

jamesmf avatar jamesmf commented on June 24, 2024

https://github.com/jamesmf/mnistCRNN

Above is a working TimeDistributedConvolution Example. It takes a set of MNIST images and learns to predict their sum.

from keras-extra.

anayebi avatar anayebi commented on June 24, 2024

Great thanks! I added the link to your demo in the ReadMe :) 👍

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.