Tensorflow Object Detection API Invalid argument: Shape mismatch in tuple component 16. Expected [1,?,?,3], got [1,182,322,4]

风流意气都作罢 提交于 2019-12-03 21:14:44

TL;DR:
Use JPEGs only.

Longer explanation:
It seems in creating TFRecords, only JPEG images are supported and nowhere in the documentation this is indicated!

Also when you try to use other types, it does not issue any warnings or doesn't throw any exceptions and therefore people like me lose an immense amount of time debugging something that could be easily spotted and fixed in the first place. Anyway, converting all images to JPEG solved this weird issue.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!