AttributeError: module 'nets.mobilenet_v1' has no attribute 'MOBILENETV1_CONV_DEFS'

我在利用TensorFlow Object Detection API预训练模型训练自己的数据时出现:AttributeError: module 'nets.mobilenet_v1' has no attribute 'MOBILENETV1_CONV_DEFS'

AttributeError: module 'nets.mobilenet_v1' has no attribute 'MOBILENETV1_CONV_DEFS'

然后*才找到解决办法:

AttributeError: module 'nets.mobilenet_v1' has no attribute 'MOBILENETV1_CONV_DEFS'

意思是打开research/object_detection/models/ssd_mobilenet_v1_fpn_feature_extractor.py,把34行copy.copy函数的第二个参数改一下。