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

AssertionError when running noc_captioner.py -i images_list.txt #9

Open
dreamflasher opened this issue May 17, 2019 · 4 comments
Open

Comments

@dreamflasher
Copy link

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

@vsubhashini
Copy link
Owner

vsubhashini commented May 18, 2019 via email

@dreamflasher
Copy link
Author

I exactly followed https://github.com/vsubhashini/noc
It doesn't say anything about downloading the vocab file there, where do I find it?

@dreamflasher
Copy link
Author

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…

@vsubhashini
Copy link
Owner

vsubhashini commented May 18, 2019 via email

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

No branches or pull requests

2 participants