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

Issue with Deconvolution3D

Open changken1 opened this issue 8 years ago • 5 comments

Hi,

I am trying to run this segment of code from the Deconvolution3D example:

model = Sequential() model.add(Deconvolution3D(3, 3, 3, 3, output_shape=(None, 3, 14, 14, 14), padding='valid', input_shape=(3, 12, 12, 12)))

but am experiencing this error "TypeError: init() got multiple values for keyword argument 'output_shape'". Is this a bug?

Thank you!

changken1 avatar Aug 10 '17 20:08 changken1

Same issue

luckustus avatar Aug 17 '17 14:08 luckustus

Does anybody know how to make this work?

luckustus avatar Oct 04 '17 09:10 luckustus

OK got it: You have to pass the filters and kernel_size arguements like this: Deconvolution3D(3,(3,3,3),...

luckustus avatar Oct 04 '17 10:10 luckustus

Could you add a simple Deconvolution3D example to the examples/ directory? This would be a great pull request!

charlesreid1 avatar Oct 26 '17 17:10 charlesreid1

from keras.layers import * Deconvolution3D(number_of_filter, kernel_size=(2, 2, 2), padding='same', data_format = 'channels_last',strides=(2, 2, 2))(last layer) I used the above code, it works for me.

jizhang02 avatar Nov 28 '19 15:11 jizhang02