最近在跑点云语义分割项目RandLA-Net的时候,遇到了这个问题,现在已经解决。
AttributeError: type object 'IteratorBase' has no attribute 'from_structure'
属性错误,类型对象‘IteratorBase’中没有from_structure属性
出现这个问题的原因:TensorFlow2.x版本中,IteratorBase这个对象对应的类中,没有封装from_structure这个属性。所以导致的错误。
解决方法:安装TensorFlow1.x。我安装了TensorFlow1.11之后,没有再出现这个问题。