我正在将 Keras 库用于 python 中的视频。我的 Keras 版本是 2.0.2
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')
请帮我解决这个错误。