Traceback (most recent call last):


 "/home/nd/workspace/ubuntu/madmom/learnmadmon/test_key_chord_downbeat.py", line 160, in <module>

proc = madmom.features.CNNKeyRecognitionProcessor()


 "/media/nd/000FCB1D000052B1/workspace/ubuntu/madmom/learnmadmon/madmom/features/key.py", line 117, in __init__

nn = NeuralNetworkEnsemble.load(nn_files)


 "/media/nd/000FCB1D000052B1/workspace/ubuntu/madmom/learnmadmon/madmom/ml/nn/__init__.py", line 174, in load

networks = [NeuralNetwork.load(f) for f in nn_files]


 "/media/nd/000FCB1D000052B1/workspace/ubuntu/madmom/learnmadmon/madmom/processors.py", line 69, in load

obj = pickle.load(f)


 "/usr/lib/python2.7/pickle.py", line 1378, in load

return Unpickler(file).load()


 "/usr/lib/python2.7/pickle.py", line 858, in load

dispatch[key](self)


 "/usr/lib/python2.7/pickle.py", line 1090, in load_global

klass = self.find_class(module, name)


 "/usr/lib/python2.7/pickle.py", line 1126, in find_class

klass = getattr(mod, name)
AttributeError: 'module' object has no attribute 'PadLayer'

`Traceback (most recent call last):


 "train.py", line 113, in <module>

main()


 "train.py", line 87, in main

model.compile(optimizer=opt, loss=loss_type, metrics=[PSNR])


 "/usr/local/lib/python3.6/dist-packages/keras/backend/tensorflow_backend.py", line 75, in symbolic_fn_wrapper

return func(*args, **kwargs)


 "/usr/local/lib/python3.6/dist-packages/keras/engine/training.py", line 222, in compile

masks=masks)


 "/usr/local/lib/python3.6/dist-packages/keras/engine/training.py", line 871, in _handle_metrics

self._per_output_metrics[i], target, output, output_mask)


 "/usr/local/lib/python3.6/dist-packages/keras/engine/training.py", line 842, in _handle_per_output_metrics

metric_fn, y_true, y_pred, weights=weights, mask=mask)


 "/usr/local/lib/python3.6/dist-packages/keras/engine/training_utils.py", line 1033, in call_metric_function

update_ops = metric_fn.update_state(y_true, y_pred, sample_weight=weights)


 "/usr/local/lib/python3.6/dist-packages/keras/utils/metrics_utils.py", line 42, in decorated

update_op = update_state_fn(*args, **kwargs)


 "/usr/local/lib/python3.6/dist-packages/keras/metrics.py", line 318, in update_state

matches = self._fn(y_true, y_pred, **self._fn_kwargs)


 "/home/x/文档/GitHub/noise2noise/model.py", line 45, in PSNR

return 10.0 * tf_log10((max_pixel ** 2) / (K.mean(K.square(y_pred - y_true))))


 "/home/x/文档/GitHub/noise2noise/model.py", line 37, in tf_log10

numerator = tf.log(x)
AttributeError: module 'tensorflow' has no attribute 'log'`