Comments (6)
@anayebi Why have you closed the issue?
from keras-extra.
Already answered here (putting the link for reference): keras-team/keras#2646 (comment)
from keras-extra.
@anayebi Can you give me the link to Keras 0.3.0?
from keras-extra.
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.
@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 aninput_shape
orbatch_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.
@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)
- 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
- 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
- Demo or example code HOT 5
- 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.