Comments (5)
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.
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.
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.
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.
Great thanks! I added the link to your demo in the ReadMe :) 👍
from keras-extra.
Related Issues (15)
- can you give me an example for cnn connect with LSTM HOT 10
- is it possible to feed images with different height and width as input into network directly? HOT 1
- Implementation of CNN+ bidirectional LSTM for videos HOT 6
- CNN+LSTM (LRCN) HOT 3
- Issue with TimeDistributedConvolution2D HOT 5
- Can't find setup.py in Keras HOT 1
- LSTM is not showing accuracy on traring ==
- keras extra running an example HOT 2
- Extra module ImportError HOT 3
- Keras 3.1 HOT 1
- Validation accuracy remains 0. HOT 3
- Visualise first Convolutional Layer HOT 2
- set_input_shape for Convolutional layer
- load model issue HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from keras-extra.