当前位置:网站首页>[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:
边栏推荐
- wps表格下拉选项怎么添加?wps表格下拉选项的添加方法
- 人人熟知的IPV6竟然还有这么多细节
- C language library function summary2019.10.31
- Button Wizard Delete File Command
- MySQL 5.5(Windows)的安装教程
- DHCP的防御机制——DHCP Snooping(DHCP监听)
- tp5用cache缓存,存储手机短信验证码
- 微信小程序开发一些函数使用方法
- 从洞察到决策,一文解读标签画像体系建设方法论丨DTVision分析洞察篇
- Ant Forest Offline crawlers automatically collect energy, raise chickens, and other operations
猜你喜欢
随机推荐
ArcPy设置全库唯一标识码
机器学习之知识点(一)
Low-Light Image Enhancement via a Deep Hybrid Network阅读札记
CTFSHOW_WEB入门web213
ArcPy要素批量转dwg
生活中无处不在的MPLS虚拟专用网
Kubernetes 1.25 中的删除和主要变化
Ant Forest Offline crawlers automatically collect energy, raise chickens, and other operations
IMConversation 或 IMUser 类型数据
微信小程序 wx:for 循环输出 例子
ArcPy图斑编号-根据字段长度自动补齐
LeetCode:最长有效括号
wps表格下拉选项怎么添加?wps表格下拉选项的添加方法
You know you every day in the use of NAT?
thinkphp5 if else的表达式怎么写?
Firewall first contact
Mysql8.0.21 Community Server远程连接报错
用工具实现 Mock API 的整个流程
windows10安装vagrant+VirtualBox搭建PHP开发环境
Python object-oriented