使用我的word_counts.txt生成图片标题

时间:2017-09-11 08:27:42

标签: tensorflow

使用我的word_counts.txt生成图片标题。

这是我的错误代码:

跟踪(最近一次呼叫最后一次):

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] for line in reverse_vocab]
IndexError: list index out of range

有人可以帮助我吗?

0 个答案:

没有答案