当前位置:网站首页>[PP-YOLOv2] Test a custom dataset
[PP-YOLOv2] Test a custom dataset
2022-08-08 23:05:00 【swaying tree】
引言
基于PP-YOLOv2训练完模型后,The training process can refer to the author's previous blog【PP-YOLOv2】训练自定义的数据集,The next step is to test.
1. 评估
CUDA_VISIBLE_DEVICES=5 python tools/eval.py -c configs/ppyolo/ppyolov2_r50vd_dcn_voc.yml -o weights=/data3/205B/PaddleDetection/output/ppyolov2_r50vd_dcn_voc/model_final --output_eval=/data3/205B/PaddleDetection/output/eval
并对eval.py进行如下修改:
After executing the command, the terminal displays the following:
各类的PRCurves are saved in the project root directoryvoc_pr_curve folder
文件夹下:
2. 测试数据(推理)
参考官方文档:PP-YOLO 模型
执行代码如下:
1. tools/infer.py # 运行测试代码
2. configs/ppyolo/ppyolov2_r50vd_dcn_voc.yml # 配置文件
3. weights=/data3/205B/PaddleDetection/output/ppyolov2_r50vd_dcn_voc/model_final # 训练得到的权重
4. infer_dir=/data3/205B/PaddleDetection/dataset/Track_fasteners/images # 测试图片路径
5. output_dir=/data3/205B/PaddleDetection/output/test_out # 输出路径
# Saved with trainingcheckpoint
CUDA_VISIBLE_DEVICES=5 python tools/infer.py -c configs/ppyolo/ppyolov2_r50vd_dcn_voc.yml -o weights=/data3/205B/PaddleDetection/output/ppyolov2_r50vd_dcn_voc/model_final --infer_dir=/data3/205B/PaddleDetection/dataset/Track_fasteners/images --output_dir=/data3/205B/PaddleDetection/output/test_out
Finally, the result image is obtained at the specified path,Here the author's output path is:/data3/205B/PaddleDetection/output/test_out
The resulting image is shown below:
边栏推荐
猜你喜欢
随机推荐
用工具实现 Mock API 的整个流程
MES docks with Simba to realize IMEI number writing and coupling test of Spreadtrum platform
JSDay1-两数之和
MySQL 5.5(Windows)的安装教程
Kubernetes 资源编排系列之二: Helm 篇
MES对接Simba实现展讯平台 IMEI 写号与耦合测试
ndk和JNI的使用初探
ArcPy图斑编号-根据字段长度自动补齐
CTF攻防世界
Button Wizard Delete File Command
按键精灵 for ts API 使用
JS中的作用域与作用域链
You know you every day in the use of NAT?
wps表格怎么调整表格大小?wps表格调整表格大小的方法
【CUDA】版本自由切换
【PP-YOLOv2】测试自定义的数据集
支付宝 To 理财排行名称修改
详解JS中for...of、in关键字
JS中数组扁平化的几种方法
让IPv6强大的关键——NDP邻居发现协议