当前位置:网站首页>[paddleclas] common commands
[paddleclas] common commands
2022-07-05 18:02:00 【mtl1994】
【PaddleClas】 Common commands
1. Generate data set
Need modification 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. forecast
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. export
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
Optional parameter list
The following list can be accessed through --help
see
FLAG | Support script | purpose | The default value is | remarks |
---|---|---|---|---|
-c | ALL | Specify profile | None | Please refer to Configuration module |
-o | ALL | Set the parameters in the configuration file | None | Use -o Configuration compared to -c The selected profile has a higher priority . for example :-o use_gpu=False max_iter=10000 |
-r/–resume_checkpoint | train | Resume training from a checkpoint | None | -r output/faster_rcnn_r50_1x/10000 |
–eval | train | Whether to test while training | False | |
–output_eval | train/eval | Edit the evaluation and save json route | current path | --output_eval ./json_result |
–fp16 | train | Whether to use mixed accuracy training mode | False | Need to use GPU Training |
–loss_scale | train | Set the scaling of the loss value in the mixed accuracy training mode | 8.0 | It needs to be opened first --fp16 After use |
–json_eval | eval | Whether to pass the existing bbox.json perhaps mask.json To assess the | False | json The file path is --output_eval Set in |
–output_dir | infer | Output post prediction visualization file | ./output | --output_dir output |
–draw_threshold | infer | Visual time score threshold | 0.5 | --draw_threshold 0.7 |
–infer_dir | infer | Picture folder path for prediction | None | |
–infer_img | infer | Picture path for prediction | None | Compare with --infer_dir Higher priority |
–use_vdl | train/infer | Whether to use VisualDL Record data , And then in VisualDL The panel shows | False | VisualDL Need to be Python>=3.5 |
–vdl_log_dir | train/infer | Appoint VisualDL Storage path for recording data | train:vdl_log_dir/scalar infer: vdl_log_dir/image | VisualDL Need to be Python>=3.5 |
边栏推荐
- To solve the stubborn problem of Lake + warehouse hybrid architecture, xinghuan Technology launched an independent and controllable cloud native Lake warehouse integrated platform
- 基于YOLOv3的口罩佩戴检测
- What are the changes in the 2022 PMP Exam?
- 外盘黄金哪个平台正规安全,怎么辨别?
- MATLAB查阅
- flask接口响应中的中文乱码(unicode)处理
- 删除数组中的某几个元素
- Ten top automation and orchestration tools
- What are the requirements for PMP certification? How much is it?
- Ten capabilities that cyber threat analysts should have
猜你喜欢
JVM third talk -- JVM performance tuning practice and high-frequency interview question record
Sophon KG升级3.1:打破数据间壁垒,解放企业生产力
How awesome is the architecture of "12306"?
Anaconda中配置PyTorch环境——win10系统(小白包会)
VBA drives SAP GUI to realize office automation (II): judge whether elements exist
使用QT遍历Json文档及搜索子对象
Redis Foundation
Tencent music launched its new product "quyimai", which provides music commercial copyright authorization
Sophon CE社区版上线,免费Get轻量易用、高效智能的数据分析工具
Configure pytorch environment in Anaconda - win10 system (small white packet meeting)
随机推荐
怎么选择外盘期货平台最正规安全?
Privacy computing helps secure data circulation and sharing
Daily exercise: a series of dates
Tkinter window preload
Matlab reference
PMP认证需具备哪些条件啊?费用多少啊?
mybash
Disabling and enabling inspections pycharm
破解湖+仓混合架构顽疾,星环科技推出自主可控云原生湖仓一体平台
RSE2020/云检测:基于弱监督深度学习的高分辨率遥感图像精确云检测
开户复杂吗?网上开户安全么?
Please tell me why some tables can find data by writing SQL, but they can't be found in the data map, and the table structure can't be found
Numerical calculation method chapter8 Numerical solutions of ordinary differential equations
Thesis reading_ Chinese NLP_ LTP
钉钉开放平台小程序API的缓存接口都有哪些内容?
VC编程入门浅谈「建议收藏」
Six bad safety habits in the development of enterprise digitalization, each of which is very dangerous!
深拷贝与浅拷贝【面试题3】
JVM第三话 -- JVM性能调优实战和高频面试题记录
Cmake tutorial step1 (basic starting point)