当前位置:网站首页>[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 |
边栏推荐
猜你喜欢
Daily exercise: a series of dates
Six bad safety habits in the development of enterprise digitalization, each of which is very dangerous!
PMP认证需具备哪些条件啊?费用多少啊?
Tencent music launched its new product "quyimai", which provides music commercial copyright authorization
每日一练:关于日期的一系列
Sophon autocv: help AI industrial production and realize visual intelligent perception
Why is all (()) true and any (()) false?
Sophon CE社区版上线,免费Get轻量易用、高效智能的数据分析工具
LeetCode每日一题:合并两个有序数组
Nanjing University: Discussion on the training program of digital talents in the new era
随机推荐
寻找第k小元素 前k小元素 select_k
职场进阶指南:大厂人必看书籍推荐
Cmake tutorial step5 (add system self-test)
每日一练:关于日期的一系列
mybash
使用QT设计师界面类创建2个界面,通过按键从界面1切换到界面2
南京大学:新时代数字化人才培养方案探讨
请问下为啥有的表写sql能查到数据,但在数据地图里查不到啊,查表结构也搜不到
钉钉开放平台小程序API的缓存接口都有哪些内容?
通过SOCKS代理渗透整个内网
Ten capabilities that cyber threat analysts should have
matlab内建函数怎么不同颜色,matlab分段函数不同颜色绘图
记一次使用Windbg分析内存“泄漏”的案例
基于YOLOv3的口罩佩戴检测
Zabbix
Eliminate the writing of 'if () else{}'
IDC report: Tencent cloud database ranks top 2 in the relational database market!
如何修改mysql字段为自增长字段
图扑软件数字孪生 | 基于 BIM 技术的可视化管理系统
Cmake tutorial Step2 (add Library)