tensorflow - Use my word_counts.txt to generate image captions -


use word_counts.txt generate image captions.

here's error code:

traceback (most recent call last):

file "/root/models/im2txt/bazel-bin/im2txt/run_inference.runfiles/im2txt/im2txt/run_inference.py", line 85, in       tf.app.run ()    file "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 44, in run      _sys.exit (main (_sys.argv [: 1] + flags_passthrough))    file "/root/models/im2txt/bazel-bin/im2txt/run_inference.runfiles/im2txt/im2txt/run_inference.py", line 55, in main      vocab = vocabulary.vocabulary (flags.vocab_file)    file "/root/models/im2txt/bazel-bin/im2txt/run_inference.runfiles/im2txt/im2txt/inference_utils/vocabulary.py", line 49, in init      reverse_vocab = [line.split () [0] line in reverse_vocab] indexerror: list index out of range 

can me?


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -