tensorflow生成deeplab v3+的tfrecord的时候报错:Failed to find all Cityscapes modules
在网上照着大神的博客用CityScapes的数据集训练deeplab V3+的时候,一步一步照着别人的方法弄,弄到生成tfrecord的时候突然报错:Failed to find all Cityscapes modules。这个错误是从csHelpers.py里面报出来的
就是因为from annotation import Annotation这个语句出错,才报的Failed to find all Cityscapes modules这个错误。from annotation import Annotation会出错主要是因为annotation这个文件里面的第238行的print采用的是python2里面的格式,所以只要把print type(obj).__name__改成print(type(obj).__name__)就好了
希望对遇到相同问题的人有帮助