用TensorFlow训练一个物体检测器-----报错解决方案

1.生成TFRecord文件时,编译create_pascal_tf_record4raccoon.py提示“no file named 'onject_detection'”:
  路径问题,加上如下:

import sys
sys.path.append('.')

因为当前路径是:D:\tensorflow\ObjectDetection\models\research,而object_detection在这个路径下,所以要加“.”

2.在faster_rcnn_inception_resnet_v2_feature_extractor.py中出现ImportError: No module named 'nets'

  在faster_rcnn_inception_resnet_v2_feature_extractor.py中加入:

import sys
sys.path.append('slim.')

3.参考:https://blog.csdn.net/chenmaolin88/article/details/79357263

你可能感兴趣的:(tensorflow,Tensorflow,Object,Detection,AP)