kuleshov / audio-super-res

Audio super resolution using neural networks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error when building mode

wl3b10s opened this issue · comments

the messege is like below:
building model...
D-Block: (?, ?, 128)
D-Block: (?, ?, 256)
D-Block: (?, ?, 512)
D-Block: (?, ?, 512)
Traceback (most recent call last):
File "run.py", line 111, in
main()
File "run.py", line 108, in main
args.func(args)
File "run.py", line 73, in train
model = get_model(args, n_dim, r, from_ckpt=False, train=True)
File "run.py", line 102, in get_model
opt_params=opt_params, log_prefix=args.logname)
File "/home/audio-super-res-master/src/models/audiounet.py", line 27, in init
opt_params=opt_params, log_prefix=log_prefix)
File "/home/audio-super-res-master/src/models/model.py", line 47, in init
self.predictions = self.create_model(n_dim, r)
File "/home/audio-super-res-master/src/models/audiounet.py", line 80, in create_model
x = merge([x, l_in], mode='concat', concat_axis=-1)
File "/usr/local/lib/python2.7/dist-packages/Keras-1.2.1-py2.7.egg/keras/engine/topology.py", line 1690, in merge
return merge_layer(inputs)
File "/usr/local/lib/python2.7/dist-packages/Keras-1.2.1-py2.7.egg/keras/engine/topology.py", line 1463, in call
return self.call(inputs, mask)
File "/usr/local/lib/python2.7/dist-packages/Keras-1.2.1-py2.7.egg/keras/engine/topology.py", line 1394, in call
return K.concatenate(inputs, axis=self.concat_axis)
File "/usr/local/lib/python2.7/dist-packages/Keras-1.2.1-py2.7.egg/keras/backend/tensorflow_backend.py", line 1427, in concatenate
return tf.concat(axis, [to_dense(x) for x in tensors])
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/array_ops.py", line 1096, in concat
dtype=dtypes.int32).get_shape().assert_is_compatible_with(
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 836, in convert_to_tensor
as_ref=False)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 926, in internal_convert_to_tensor
ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/constant_op.py", line 229, in _constant_tensor_conversion_function
return constant(v, dtype=dtype, name=name)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/constant_op.py", line 208, in constant
value, dtype=dtype, shape=shape, verify_shape=verify_shape))
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/tensor_util.py", line 383, in make_tensor_proto
_AssertCompatible(values, dtype)
File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/tensor_util.py", line 303, in _AssertCompatible
(dtype.name, repr(mismatch), type(mismatch).name))
TypeError: Expected int32, got list containing Tensors of type '_Message' instead.

the code is run on ubunt14.04 with tf1.4.0
how can i correct this error? thanks.