私はPythonで動画にKerasライブラリを使用しています。 私のKerasバージョンは2.0.2Keras:TypeError:( 'キーワード引数が理解できません:'、 'nb_depth')
kernel_size=3
model = Sequential()
model.add(Convolution3D(nb_filters[0], kernel_size,nb_depth=nb_conv[0], nb_row=nb_conv[0],
nb_col=nb_conv[0],input_shape=(1, img_rows, img_cols, patch_size),
activation='relu'))
私は次のエラーが発生しています。
Using Theano Backened
Traceback (most recent call last):
File "F:/Project/codes/foreg.py", line 131, in <module>
input_shape=(1, img_rows, img_cols, patch_size), activation='relu'))
File "C:\Users\lenov\Anaconda3\envs\3dcnn\lib\site-packages\keras\legacy\interfaces.py", line 88, in wrapper
return func(*args, **kwargs)
File "C:\Users\lenov\Anaconda3\envs\3dcnn\lib\site-packages\keras\layers\convolutional.py", line 580, in __init__
**kwargs)
File "C:\Users\lenov\Anaconda3\envs\3dcnn\lib\site-packages\keras\layers\convolutional.py", line 100, in __init__
super(_Conv, self).__init__(**kwargs)
File "C:\Users\lenov\Anaconda3\envs\3dcnn\lib\site-packages\keras\engine\topology.py", line 277, in __init__
raise TypeError('Keyword argument not understood:', kwarg)
TypeError: ('Keyword argument not understood:', 'nb_depth')
このエラーで私を助けてください。エラーメッセージが言うように
kernel_size: An integer or tuple/list of 3 integers, specifying the width and height of the 3D convolution window. Can be a single integer to specify the same value for all spatial dimensions.
私はカーネルサイズを与えた後、私は上記のエラーを取得しています。私は変更を加えました –
"nb_depth"などの引数はありません。次のキーワードに対応する引数のみを渡すことができます: strides、padding、data_format、dilation_rate、activation_use_bias、kernel_initializer、bias_initializer、kernel_regularizer、bias_regularizer、activity_regularizer、kernel_constraint、bias_constraint。 – michetonu