rizkiarm / LipNet

Keras implementation of 'LipNet: End-to-End Sentence-level Lipreading'
MIT License
628 stars 224 forks source link

ValueError: Dimensions must be equal, but are 96 and 28 for 'dense1/add' (op: 'Add') with input shapes: [?,96,28], [1,28,1]. #80

Open Chintan-97 opened 5 years ago

Chintan-97 commented 5 years ago

/usr/bin/python2.7 /home/chintan/Downloads/LipNet-master/evaluation/predict.py /home/chintan/Downloads/LipNet-master/evaluation/models/unseen-weights178.h5 /home/chintan/Downloads/LipNet-master/evaluation/samples/id2_vcd_swwp2s.mpg Using TensorFlow backend.

Loading data from disk... Data loaded.

Traceback (most recent call last): File "/home/chintan/Downloads/LipNet-master/evaluation/predict.py", line 61, in video, result = predict(sys.argv[1], sys.argv[2]) File "/home/chintan/Downloads/LipNet-master/evaluation/predict.py", line 40, in predict absolute_max_string_len=absolute_max_string_len, output_size=output_size) File "/home/chintan/Downloads/LipNet-master/lipnet/model2.py", line 21, in init self.build() File "/home/chintan/Downloads/LipNet-master/lipnet/model2.py", line 58, in build self.dense1 = Dense(self.output_size, kernel_initializer='he_normal', name='dense1')(self.gru_2) File "/home/chintan/.local/lib/python2.7/site-packages/keras/engine/topology.py", line 554, in call output = self.call(inputs, **kwargs) File "/home/chintan/.local/lib/python2.7/site-packages/keras/layers/core.py", line 842, in call output = K.bias_add(output, self.bias) File "/home/chintan/.local/lib/python2.7/site-packages/keras/backend/tensorflow_backend.py", line 3094, in bias_add x += reshape(bias, (1, int_shape(bias)[0], 1)) File "/home/chintan/.local/lib/python2.7/site-packages/tensorflow/python/ops/math_ops.py", line 794, in binary_op_wrapper return func(x, y, name=name) File "/home/chintan/.local/lib/python2.7/site-packages/tensorflow/python/ops/gen_math_ops.py", line 73, in add result = _op_def_lib.apply_op("Add", x=x, y=y, name=name) File "/home/chintan/.local/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 763, in apply_op op_def=op_def) File "/home/chintan/.local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2329, in create_op set_shapes_for_outputs(ret) File "/home/chintan/.local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1717, in set_shapes_for_outputs shapes = shape_func(op) File "/home/chintan/.local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1667, in call_with_requiring return call_cpp_shape_fn(op, require_shape_fn=True) File "/home/chintan/.local/lib/python2.7/site-packages/tensorflow/python/framework/common_shapes.py", line 610, in call_cpp_shape_fn debug_python_shape_fn, require_shape_fn) File "/home/chintan/.local/lib/python2.7/site-packages/tensorflow/python/framework/common_shapes.py", line 676, in _call_cpp_shape_fn_impl raise ValueError(err.message) ValueError: Dimensions must be equal, but are 96 and 28 for 'dense1/add' (op: 'Add') with input shapes: [?,96,28], [1,28,1].

Process finished with exit code 1