keras-yolov3训练目标检测数据集,过程中可以只可以看到loss下降曲线,生成.h5模型文件,模型度量map及recall网上的方法有很多,本文主要参考下面方法:GitHub - Cartucho/mAP: mean Average Precision - This code evaluates the performance of your neural net for object recognition.mean Average Precision - This code evaluates the performance of your neural net for object recognition. - GitHub - Cartucho/mAP: mean Average Precision - This code evaluates the performance of your neural net for object recognition.https://github.com/Cartucho/mAP
最后一步执行main.py的时候, 报错如下:
解决方法:
问题的主要原因是,opencv在读取图片的时候,路径或者文件名包含中文导致的。处理方法有两种:
1.路径和文件名不要包含中文;
2.用img = cv2.imdecode(np.fromfile(path,dtype=np.uint8),-1)
代替img = cv2.imread(path)