keras-shufflenetV2 icon indicating copy to clipboard operation
keras-shufflenetV2 copied to clipboard

I find that if the input is equal to (None,None,3),May be an error

Open venchi012 opened this issue 5 years ago • 1 comments

x = K.reshape(x, [-1, height, width, 2, channels_per_split]) #Failed to convert object of type <class 'list'> to Tensor. Contents: [-1, None, None, 2, 16]. Consider casting #elements to a supported type.

venchi012 avatar Mar 12 '19 04:03 venchi012

I find it, but I change to 'model = ShuffleNetV2(include_top=False, input_tensor=Input(shape=(224, 224, 3)), bottleneck_ratio=1)', then no error and could work.

Be997398715 avatar Mar 22 '19 03:03 Be997398715