Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dimensions must be equal, for 'xw_plus_b_5 #6

Open
autogyro opened this issue Sep 1, 2018 · 2 comments
Open

Dimensions must be equal, for 'xw_plus_b_5 #6

autogyro opened this issue Sep 1, 2018 · 2 comments
Labels

Comments

@autogyro
Copy link

autogyro commented Sep 1, 2018

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].

@pochih
Copy link
Owner

pochih commented Sep 28, 2018

Make sure to install the corresponding version of tensorflow of this repository.
The version used in this repo is deprecated, I am not sure where you can find it.
Sorry.

@wzw1998
Copy link

wzw1998 commented Nov 12, 2020

I'm in video cap https://github.com/pochih/Video-Cap/issues I found you in this project. I asked the eighth question. I want to ask you. Did you run this project successfully? I showed up with dimensions must be equal, for 'XW_ plus_ B_ 5, but I have changed tensorflow and CUDA to corresponding versions, but the code still can't run. I hope you can guide me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants