Python TF:在检查点文件中未找到张量名称
我一直在尝试使用回购协议中给出的预培训模型。我正在使用这个网络和ILSVRC-2012-CLS图像分类数据集存储库主页中给出的检查点文件。我正在为《盗梦空间3》下载一个 我只是想做一个预测,所以我的代码如下:Python TF:在检查点文件中未找到张量名称,python,tensorflow,machine-learning,Python,Tensorflow,Machine Learning,我一直在尝试使用回购协议中给出的预培训模型。我正在使用这个网络和ILSVRC-2012-CLS图像分类数据集存储库主页中给出的检查点文件。我正在为《盗梦空间3》下载一个 我只是想做一个预测,所以我的代码如下: placeholder = tf.placeholder(tf.float32, shape=[None, input_width, input_height, 3]) # Select the model model = inception(placeholder) # Predic
placeholder = tf.placeholder(tf.float32, shape=[None, input_width, input_height, 3])
# Select the model
model = inception(placeholder)
# Predict
with tf.Session() as sess:
tf.train.Saver().restore(sess, "./model/inception_v3.ckpt")
init_op = tf.initialize_all_variables()
predictions = sess.run(model, feed_dict={placeholder: input})
但我收到了一个错误“NotFoundError(回溯见上文):在检查点文件中找不到张量名称“InceptionV3/AuxLogits/Conv2d\u 2a\u 5x5/biases”。/model/inception\u v3.ckpt“
所以我不知道ckpt文件是否没有更新为张量名称,或者我是否做错了什么。我检查了inception_v3.ckpt文件中的所有张量名称,但找不到导致错误的张量名称
提前谢谢