当前位置:网站首页>【PaddleClas】常用命令
【PaddleClas】常用命令
2022-07-05 17:50:00 【mtl1994】
【PaddleClas】常用命令
1.生成数据集
需要修改 build_product.yaml
python python/build_gallery.py -c configs/build_product.yaml -o IndexProcess.data_file="D:\Paddle\PaddleClas\out\recognition_demo_data_v1.0\gallery_sg\data_file.txt" -o IndexProcess.index_path="D:\Paddle\PaddleClas\out\recognition_demo_data_v1.0\gallery_sg\index"
3.预测
python tools/infer.py -c configs/ppyolo/ppyolo_r50vd_dcn_voc.yml --infer_dir=/home/aiuser/mtl/data/sg/test --output_dir=./sg_out_put/ --draw_threshold=0.5 -o weights=./output/ppyolo_r50vd_dcn_voc/model_final
4.导出
python tools/export_model.py -c configs/ppyolo/ppyolo_r50vd_dcn_voc.yml \
--output_dir=./inference_model \
-o weights=output/ppyolo_r50vd_dcn_voc/model_final
可选参数列表
以下列表可以通过--help查看
| FLAG | 支持脚本 | 用途 | 默认值 | 备注 |
|---|---|---|---|---|
| -c | ALL | 指定配置文件 | None | 配置模块说明请参考配置模块 |
| -o | ALL | 设置配置文件里的参数内容 | None | 使用-o配置相较于-c选择的配置文件具有更高的优先级。例如:-o use_gpu=False max_iter=10000 |
| -r/–resume_checkpoint | train | 从某一检查点恢复训练 | None | -r output/faster_rcnn_r50_1x/10000 |
| –eval | train | 是否边训练边测试 | False | |
| –output_eval | train/eval | 编辑评测保存json路径 | 当前路径 | --output_eval ./json_result |
| –fp16 | train | 是否使用混合精度训练模式 | False | 需使用GPU训练 |
| –loss_scale | train | 设置混合精度训练模式中损失值的缩放比例 | 8.0 | 需先开启--fp16后使用 |
| –json_eval | eval | 是否通过已存在的bbox.json或者mask.json进行评估 | False | json文件路径在--output_eval中设置 |
| –output_dir | infer | 输出预测后可视化文件 | ./output | --output_dir output |
| –draw_threshold | infer | 可视化时分数阈值 | 0.5 | --draw_threshold 0.7 |
| –infer_dir | infer | 用于预测的图片文件夹路径 | None | |
| –infer_img | infer | 用于预测的图片路径 | None | 相较于--infer_dir具有更高优先级 |
| –use_vdl | train/infer | 是否使用VisualDL记录数据,进而在VisualDL面板中显示 | False | VisualDL需Python>=3.5 |
| –vdl_log_dir | train/infer | 指定 VisualDL 记录数据的存储路径 | train:vdl_log_dir/scalar infer: vdl_log_dir/image | VisualDL需Python>=3.5 |
边栏推荐
- Data access - entityframework integration
- Oracle recovery tools -- Oracle database recovery tool
- 图扑软件数字孪生 | 基于 BIM 技术的可视化管理系统
- 删除数组中的某几个元素
- QT console printout
- Six bad safety habits in the development of enterprise digitalization, each of which is very dangerous!
- nano的CAN通信
- 在一台服务器上部署多个EasyCVR出现报错“Press any to exit”,如何解决?
- 较文心损失一点点性能提升很多
- Cmake tutorial step1 (basic starting point)
猜你喜欢

星环科技重磅推出数据要素流通平台Transwarp Navier,助力企业实现隐私保护下的数据安全流通与协作

使用QT遍历Json文档及搜索子对象

Ten capabilities that cyber threat analysts should have

Sophon Base 3.1 推出MLOps功能,为企业AI能力运营插上翅膀

Thesis reading_ Chinese NLP_ LTP

提高應用程序性能的7個DevOps實踐

Vulnerability recurrence - 48. Command injection in airflow DAG (cve-2020-11978)

Binder开辟线程数过多导致主线程ANR异常

"Xiaodeng in operation and maintenance" is a single sign on solution for cloud applications

Matlab reference
随机推荐
Cmake tutorial Step2 (add Library)
Redis Foundation
寻找第k小元素 前k小元素 select_k
Seven Devops practices to improve application performance
基于YOLOv3的口罩佩戴检测
LeetCode笔记:Weekly Contest 300
集群部署如何解决海量视频接入与大并发需求?
Thesis reading_ Medical NLP model_ EMBERT
tkinter窗口预加载
Mask wearing detection based on yolov3
GIMP 2.10教程「建议收藏」
从XML架构生成类
Redis基础
Binder开辟线程数过多导致主线程ANR异常
7 pratiques devops pour améliorer la performance des applications
Ant financial's sudden wealth has not yet begun, but the myth of zoom continues!
「运维有小邓」用于云应用程序的单点登录解决方案
破解湖+仓混合架构顽疾,星环科技推出自主可控云原生湖仓一体平台
一文读懂简单查询代价估算
Zabbix