hi Pochih
while i run the test.py, i got the following error message, I could not resolve it, please help me to take a look, many thanks.
Edward
-----------------------------------------error message------------------------------
runfile('D:/Video-Cap-master/python/test.py', wdir='D:/Video-Cap-master/python')
WARNING:tensorflow:<tensorflow.python.ops.rnn_cell_impl.BasicLSTMCell object at 0x000002165849A978>: Using a concatenated state is slower and will soon be deprecated. Use state_is_tuple=True.
Traceback (most recent call last):
File "", line 1, in
runfile('D:/Video-Cap-master/python/test.py', wdir='D:/Video-Cap-master/python')
File "D:\Dev\IDE\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile
execfile(filename, namespace)
File "D:\Dev\IDE\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "D:/Video-Cap-master/python/test.py", line 114, in
test()
File "D:/Video-Cap-master/python/test.py", line 58, in test
video_tf, video_mask_tf, caption_tf, probs_tf, last_embed_tf = model.build_generator()
File "D:\Dev\python\ref_case\caption\Video-Cap-master\python\model.py", line 131, in build_generator
logit_words = tf.nn.xw_plus_b(output2, self.embed_word_W, self.embed_word_b)
File "D:\Dev\IDE\Anaconda3\lib\site-packages\tensorflow\python\ops\nn_ops.py", line 2221, in xw_plus_b
return bias_add(mm, biases, name=name)
File "D:\Dev\IDE\Anaconda3\lib\site-packages\tensorflow\python\ops\nn_ops.py", line 1506, in bias_add
return gen_nn_ops.bias_add(value, bias, data_format=data_format, name=name)
File "D:\Dev\IDE\Anaconda3\lib\site-packages\tensorflow\python\ops\gen_nn_ops.py", line 729, in bias_add
"BiasAdd", value=value, bias=bias, data_format=data_format, name=name)
File "D:\Dev\IDE\Anaconda3\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 787, in _apply_op_helper
op_def=op_def)
File "D:\Dev\IDE\Anaconda3\lib\site-packages\tensorflow\python\util\deprecation.py", line 454, in new_func
return func(*args, **kwargs)
File "D:\Dev\IDE\Anaconda3\lib\site-packages\tensorflow\python\framework\ops.py", line 3155, in create_op
op_def=op_def)
File "D:\Dev\IDE\Anaconda3\lib\site-packages\tensorflow\python\framework\ops.py", line 1731, in init
control_input_ops)
File "D:\Dev\IDE\Anaconda3\lib\site-packages\tensorflow\python\framework\ops.py", line 1579, in _create_c_op
raise ValueError(str(e))
ValueError: Dimensions must be equal, but are 3175 and 3514 for 'xw_plus_b_5' (op: 'BiasAdd') with input shapes: [1,3175], [3514].
hi Pochih
while i run the test.py, i got the following error message, I could not resolve it, please help me to take a look, many thanks.
Edward
-----------------------------------------error message------------------------------
runfile('D:/Video-Cap-master/python/test.py', wdir='D:/Video-Cap-master/python')
WARNING:tensorflow:<tensorflow.python.ops.rnn_cell_impl.BasicLSTMCell object at 0x000002165849A978>: Using a concatenated state is slower and will soon be deprecated. Use state_is_tuple=True.
Traceback (most recent call last):
File "", line 1, in
runfile('D:/Video-Cap-master/python/test.py', wdir='D:/Video-Cap-master/python')
File "D:\Dev\IDE\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile
execfile(filename, namespace)
File "D:\Dev\IDE\Anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "D:/Video-Cap-master/python/test.py", line 114, in
test()
File "D:/Video-Cap-master/python/test.py", line 58, in test
video_tf, video_mask_tf, caption_tf, probs_tf, last_embed_tf = model.build_generator()
File "D:\Dev\python\ref_case\caption\Video-Cap-master\python\model.py", line 131, in build_generator
logit_words = tf.nn.xw_plus_b(output2, self.embed_word_W, self.embed_word_b)
File "D:\Dev\IDE\Anaconda3\lib\site-packages\tensorflow\python\ops\nn_ops.py", line 2221, in xw_plus_b
return bias_add(mm, biases, name=name)
File "D:\Dev\IDE\Anaconda3\lib\site-packages\tensorflow\python\ops\nn_ops.py", line 1506, in bias_add
return gen_nn_ops.bias_add(value, bias, data_format=data_format, name=name)
File "D:\Dev\IDE\Anaconda3\lib\site-packages\tensorflow\python\ops\gen_nn_ops.py", line 729, in bias_add
"BiasAdd", value=value, bias=bias, data_format=data_format, name=name)
File "D:\Dev\IDE\Anaconda3\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 787, in _apply_op_helper
op_def=op_def)
File "D:\Dev\IDE\Anaconda3\lib\site-packages\tensorflow\python\util\deprecation.py", line 454, in new_func
return func(*args, **kwargs)
File "D:\Dev\IDE\Anaconda3\lib\site-packages\tensorflow\python\framework\ops.py", line 3155, in create_op
op_def=op_def)
File "D:\Dev\IDE\Anaconda3\lib\site-packages\tensorflow\python\framework\ops.py", line 1731, in init
control_input_ops)
File "D:\Dev\IDE\Anaconda3\lib\site-packages\tensorflow\python\framework\ops.py", line 1579, in _create_c_op
raise ValueError(str(e))
ValueError: Dimensions must be equal, but are 3175 and 3514 for 'xw_plus_b_5' (op: 'BiasAdd') with input shapes: [1,3175], [3514].