当前位置:网站首页>【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 |
边栏推荐
- Sophon autocv: help AI industrial production and realize visual intelligent perception
- What are the requirements for PMP certification? How much is it?
- 通过SOCKS代理渗透整个内网
- Ten capabilities that cyber threat analysts should have
- IDC report: Tencent cloud database ranks top 2 in the relational database market!
- 登录连接 CDB 和 PDB
- Webapp development - Google official tutorial
- Server configuration jupyter environment
- Mask wearing detection based on yolov3
- Sophon KG升级3.1:打破数据间壁垒,解放企业生产力
猜你喜欢
mybash
星环科技数据安全管理平台 Defensor重磅发布
记一次使用Windbg分析内存“泄漏”的案例
使用Jmeter虚拟化table失败
Mask wearing detection based on yolov3
GFS distributed file system
Ten top automation and orchestration tools
ISPRS2022/雲檢測:Cloud detection with boundary nets基於邊界網的雲檢測
VBA drives SAP GUI to realize office automation (II): judge whether elements exist
JVM第三话 -- JVM性能调优实战和高频面试题记录
随机推荐
较文心损失一点点性能提升很多
Cmake tutorial step5 (add system self-test)
Thesis reading_ Chinese NLP_ LTP
rsync
Tkinter window preload
怎么选择外盘期货平台最正规安全?
每日一练:关于日期的一系列
Seven Devops practices to improve application performance
数据访问 - EntityFramework集成
星环科技重磅推出数据要素流通平台Transwarp Navier,助力企业实现隐私保护下的数据安全流通与协作
Ten top automation and orchestration tools
小白入门NAS—快速搭建私有云教程系列(一)[通俗易懂]
Sophon AutoCV:助力AI工业化生产,实现视觉智能感知
Cmake tutorial Step3 (requirements for adding libraries)
Sophon kg upgrade 3.1: break down barriers between data and liberate enterprise productivity
通过SOCKS代理渗透整个内网
华夏基金:基金行业数字化转型实践成果分享
QT console printout
mybash
破解湖+仓混合架构顽疾,星环科技推出自主可控云原生湖仓一体平台