使用darkent 训练模型后测试,标注效果不是很好看,随做了以下处理。
修改之前,测试输出
修改darkent 标注框的粗细以及label的粗细
定位到代码文件darknet/src/image.c文件
使用vim编辑该文件,修改文件中 的
void draw_detections(image im, detection *dets, int num, float thresh, char **names, image **alphabet, int classes)方法
具体修改位置:
line number 259 int width = im.h * .001; // modified from .006 to .001
line number 295 image label = get_label(alphabet, labelstr, (im.h*.01)); // modified from .03 to .01
修改完成后,保存修改
然后再回到darkent 主目录重新编译
make -j 32 (32 代表cpu core)
编译完成后测试,OK