issues
search
jsalbert
/
Music-Genre-Classification-with-Deep-Learning
Using deep learning to predict the genre of a song.
https://jsalbert.github.io/Music-Genre-Classification-with-Deep-Learning/
MIT License
155
stars
38
forks
source link
TypeError: ('Keyword argument not understood:', 'mode')
#10
Open
vikas-ratan
opened
3 years ago
vikas-ratan
commented
3 years ago
TypeError Traceback (most recent call last)
in
----> 1 model = MusicTaggerCNN(weights=None, input_tensor=(1, 96, 1366))
in MusicTaggerCNN(weights, input_tensor) 61 # Conv block 1 62 x = Convolution2D(32, 3, 3, padding='same', name='conv1', trainable=False)(x) ---> 63 x = BatchNormalization(axis=channel_axis, mode=0, name='bn1', trainable=False)(x) 64 x = ELU()(x) 65 x = MaxPooling2D(pool_size=(2, 4), name='pool1', trainable=False)(x) ~\anaconda3\envs\vikas\lib\site-packages\tensorflow\python\keras\layers\normalization.py in __init__(self, axis, momentum, epsilon, center, scale, beta_initializer, gamma_initializer, moving_mean_initializer, moving_variance_initializer, beta_regularizer, gamma_regularizer, beta_constraint, gamma_constraint, renorm, renorm_clipping, renorm_momentum, fused, trainable, virtual_batch_size, adjustment, name, **kwargs) 182 name=None, 183 **kwargs): --> 184 super(BatchNormalizationBase, self).__init__(name=name, **kwargs) 185 if isinstance(axis, (list, tuple)): 186 self.axis = axis[:] ~\anaconda3\envs\vikas\lib\site-packages\tensorflow\python\training\tracking\base.py in _method_wrapper(self, *args, **kwargs) 515 self._self_setattr_tracking = False # pylint: disable=protected-access 516 try: --> 517 result = method(self, *args, **kwargs) 518 finally: 519 self._self_setattr_tracking = previous_value # pylint: disable=protected-access ~\anaconda3\envs\vikas\lib\site-packages\tensorflow\python\keras\engine\base_layer.py in __init__(self, trainable, name, dtype, dynamic, **kwargs) 338 } 339 # Validate optional keyword arguments. --> 340 generic_utils.validate_kwargs(kwargs, allowed_kwargs) 341 342 # Mutable properties ~\anaconda3\envs\vikas\lib\site-packages\tensorflow\python\keras\utils\generic_utils.py in validate_kwargs(kwargs, allowed_kwargs, error_message) 806 for kwarg in kwargs: 807 if kwarg not in allowed_kwargs: --> 808 raise TypeError(error_message, kwarg) 809 810 TypeError: ('Keyword argument not understood:', 'mode')
TypeError Traceback (most recent call last)