Home keras use TimeDistributed+LSTM with variable input size
Reply: 0

keras use TimeDistributed+LSTM with variable input size

user769
1#
user769 Published in June 19, 2018, 4:20 pm

I want to use TimeDistributed+LSTM with variable input size

   Input(shape=(None,None,1),name='the_input') #not work

    x = Conv2D(512,(3,3),strides=(1,1),padding='same',activation='relu',kernel_initializer='normal',name='rpn_conv1')(base_layers)

    bilstm = Bidirectional(GRU(128,return_sequences=True),name='blstm')

    x =TimeDistributed(bilstm,name='timedistributed')(x)

TypeError: Failed to convert object of type to Tensor. Contents: (-1, None, 512). Consider casting elements to a supported type.

when I fixed input size ,it's work

Input(shape=(500,500,1),name='the_input')

I have no idea how to fix the error,did anyone use these two before? Thanks.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.40312 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO