错误(1)解决方法
ValueError: Cannot feed value of shape (72, 272, 3) for Tensor ‘Placeholder_4:0’, which has shape '(1, 72, 272, 3)'
image 的shape是(72,272,3),不能喂给他一个(1,72,272,3)的placeholder。
需要把image的shape改成和它一样的
image = image.reshape(1,72, 272, 3),这样这个问题就解决了。
参考的这篇文章:https://stackoverflow.com/questions/40430186/tensorflow-valueerror-cannot-feed-value-of-shape-64-64-3-for-tensor-uplace