0
votes

TypeError Traceback (most recent call last) in 1 model= tf.keras.models.Sequential() ----> 2 model.add(Conv3D(64 ,kernel_size =(3,3,3) ,strides = (1,1,1), padding = 'same',input_shape=(input_shape) ,activation = 'relu')) 3 model.add(Conv3D(64 , kernel_size = (3,3,3) ,strides = (1,1,1) , padding = 'same' , activation = 'relu')) 4 model.add(MaxPooling3D(pooling_size = (2,2,2) , strides= (2,2,2))) 5 model.add(Conv3D(128 , kernel_size = (3,3,3) ,strides = (1,1,1) , padding = 'same' , activation = 'relu'))

1

1 Answers

1
votes

You are using tf.keras while you have added Conv3D layer from keras.layers.convolutional.Conv3D.

Change your layer import to:

from tensorflow.keras.layers import Conv3D