hzy46/Deep-Learning-21-Examples

第三章,采用rennet_v1_50模型进行训练,已经训练完成,想导出模型对单张图像进行识别,最后的classfy_image_inception_v3.py出现错误,应该怎么修改

Opened this issue · 1 comments

第三章,采用rennet_v1_50模型进行训练,已经训练完成,想导出模型对单张图像进行识别,最后的classfy_image_inception_v3.py出现错误,应该怎么修改呀?
KeyError: "The name 'resnet_v1/logits/SpatialSqueeze:0' refers to a Tensor which does not exist. The operation, 'resnet_v1/logits/SpatialSqueeze', does not exist in the graph."

我也遇到了同样的问题,修改成’resnet_v1/SpatialSqueeze:0‘ 就不会报错了,但似乎预测有问题,我还在测试,不知道是不是名字不对