、 评估工具的使用, 安装,修改路径,参考下面博客,
注意,如果报错再修改
!"#$"%&"
& !"'(!"""
&、用里面自带的 修改代码生成文件
详细步骤,以及文件路径安排
)$ !*&(!**
上述博客看完,了,对过程有了了解之后,可以再看下下面的补充
1、
./evaluate -a ../annoFile.txt -d ../detDir/detection_out2.txt -i
../orginalPics/ /l ../filePath.txt
这个操作就是修改路径的意思
替代操作(一个是 32 位,下面是 64 位)
在 evaluation 中的 evaluate.cpp,文件的 78 行下的 4 个路径,直接写绝对路径就可以
了
#ifdef _WIN32
string baseDir = "F:/scratch/Data/facesInTheWild/";
string listFile =
"F:/scratch/Data/detectionResults/FDDB/imList.txt";
string detFile =
"F:/scratch/Data/detectionResults/FDDB/MikolajczykDets.txt";
string annotFile =
"F:/scratch/Data/detectionResults/FDDB/ellipseList.txt";
#else
string baseDir = "/home/lee/shishi/FDDB/originalPics/";
string listFile = "/home/lee/shishi/FDDB/filePath.txt";
string detFile = "/home/lee/shishi/FDDB/detection_out2.txt";
string annotFile = "/home/lee/shishi/FDDB/annotFile.txt";
#endif
2、如何生成 FDDB 的 txt 文件,
用 mobilenet,自带的,demo.py,将读取数据,和输出数据自己进行增加。,输出需要的格
式的 txt,文件
注意代码上面的两行文件
net_le=
'/home/cae/examples/MobilenetSSD/examples/MobileNetSSD_deploy.prototxt
'
cae_model='MobileNetSSD_deploy-face-fddb.caemodel'
第一个文件改成自己的 prototxt 文件,绝对地址
第二个文件,是通过,自带的 mergy_bn.py 生成的文件,,如何生成 mergy.py,生成自己的
网络文件参考,地址
https://blog.csdn.net/cs_fang_dn/article/details/78790790
6).Run merge_bn.py to generate your own deploy
caffemodel.
在+,-./00 目录下执行
1
评论0