MasK-RCNN应用 - AttributeError:module tensorflow no attribute app
错误: AttributeError:module tensorflow no attribute app问题描述tensorflow版本问题,tf.app.flags只有tensorflow1中才有.问题导致应该是用了tensorflow2.0,而源代码是tensorflow1.几版本。解决方法以下两种方法选择一种即可将import tensorflow as tf 改为import tensorflow.compat.v1 as tf用tf.compat.v1.flags替换t.