-
Notifications
You must be signed in to change notification settings - Fork 24
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
AssertionError when running noc_captioner.py -i images_list.txt #9
Comments
Did you change the vocab file? (Or not download it?
surf_intersect_glove.txt)
…On Fri, May 17, 2019, 4:22 PM Marcel Ackermann ***@***.***> wrote:
Computing features for images 0-9 of 10
Traceback (most recent call last):
File "noc_captioner.py", line 569, in <module>
main()
File "noc_captioner.py", line 553, in main
strategies=STRATEGIES, display_vocab=vocab_list)
File "noc_captioner.py", line 286, in run_pred_iters
run_pred_iter(pred_net, image_fc7, display_vocab, strategies=strategies)
File "noc_captioner.py", line 199, in run_pred_iter
captions, probs = predict_image_caption(net, mean_pool_fc7, vocab_list, strategy=strategy)
File "noc_captioner.py", line 97, in predict_image_caption
return predict_image_caption_beam_search(net, mean_pool_fc7, vocab_list, strategy)
File "noc_captioner.py", line 174, in predict_image_caption_beam_search
assert probs.shape[0] == len(vocab_list)
AssertionError
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#9?email_source=notifications&email_token=AACY44TT27L7H4CWZJRWDPDPV442ZA5CNFSM4HNY7FX2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GUQCPNQ>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACY44SG2HYBCQEE7V6FCMLPV442ZANCNFSM4HNY7FXQ>
.
|
I exactly followed https://github.com/vsubhashini/noc |
Seems to be checked in to the repo? https://github.com/vsubhashini/noc/blob/recurrent/examples/noc/surf_intersect_glove.txt – or do I need a different one? I did a normal git clone… |
Yes that's the one. It's weird you should get the error. Can you print the
length of the vocab_list and probs.shape and check what's different.
…On Fri, May 17, 2019, 5:42 PM Marcel Ackermann ***@***.***> wrote:
Seems to be checked in to the repo?
https://github.com/vsubhashini/noc/blob/recurrent/examples/noc/surf_intersect_glove.txt
– or do I need a different one? I did a normal git clone…
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#9?email_source=notifications&email_token=AACY44Q6E66RWICLDCLFTILPV5GIDA5CNFSM4HNY7FX2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVWEJQI#issuecomment-493634753>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACY44WBFVTPD5RJHZJQLQ3PV5GIDANCNFSM4HNY7FXQ>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: