我在tensorflow站点尝试了初始教程:https: //www.tensorflow.org/versions/r0.12/how_tos/image_retraining/ bazel build已成功完成但当我尝试使用此命令预测图像类时:
bazel build tensorflow/examples/label_image:label_image && \
bazel-bin/tensorflow/examples/label_image/label_image \
--graph=/tmp/output_graph.pb --labels=/tmp/output_labels.txt \
--output_layer=final_result \
--image=$HOME/flower_photos/daisy/21652746_cc379e0eea_m.jpg
Run Code Online (Sandbox Code Playgroud)
我有这个错误:tensorflow/examples/label_image/main.cc:305]运行模型失败:未找到:FeedInputs:无法找到Feed输入
我怎么解决这个问题
我可以使用像这里的快速文字向量:https: //github.com/facebookresearch/fastText/blob/master/pretrained-vectors.md 在tensorflow脚本中作为嵌入向量而不是word2vec或手套而不使用库fasttext
我正在尝试这个笔记本:https: //github.com/sjchoi86/Tensorflow-101/blob/master/notebooks/char_rnn_sample_tutorial.ipynb
我对[6]中的这一行有疑问:
outputs, final_state = seq2seq.rnn_decoder(inputs, istate, cell, loop_function=None, scope='rnnlm')
Run Code Online (Sandbox Code Playgroud)
我收到此错误:
NameError: name 'seq2seq' is not defined
Run Code Online (Sandbox Code Playgroud)
我正在使用tensorflow 1.0.1.我试过了
tf.contrib.seq2seq
Run Code Online (Sandbox Code Playgroud)
但我收到错误:
AttributeError: 'module' object has no attribute 'rnn_decoder'
Run Code Online (Sandbox Code Playgroud)
我认为在tensorflow 1.0.1中新的rnn网络实现是一个问题,但我不知道如何修复它.
python attributeerror lstm tensorflow recurrent-neural-network