无法为张量“import/Pl”输入形状(1,229,229,3)的值aceholder:0“,其形状为“(?”?, 299, 299, 3)'

2024-03-29 06:41:59 发布

您现在位置:Python中文网/ 问答频道 /正文

当我试图运行label时,我已经基于git:https://github.com/isobar-us/multilabel-image-classification-tensorflow/tree/master/tf-multi-label-detection重新训练了一个Inception ResNet v2_图片.py它给出了ValueError:无法为Tensor'import/Pl提供shape(1,229,229,3)的值aceholder:0“,其形状为“(?”?,299,299,3)'

我试过把张量改成(299299,3),但也有类似的错误

所有代码都在git中,我运行的命令是python label_image.py --input_height=229 --input_width=229 --graph=/tmp/output_graph.pb --labels=labels.txt --input_layer=Placeholder --output_layer=final_result --image=test.jpg


Tags: pyhttpsimagegitgithubcomlayerinput