当前位置:网站首页>[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 |
边栏推荐
- Leetcode notes: Weekly contest 300
- 登录连接 CDB 和 PDB
- Ten capabilities that cyber threat analysts should have
- Sophon AutoCV:助力AI工业化生产,实现视觉智能感知
- 多线程(一) 进程与线程
- Easynmon Usage Summary
- Privacy computing helps secure data circulation and sharing
- Compared with the loss of Wenxin, the performance is improved a lot
- Huaxia Fund: sharing of practical achievements of digital transformation in the fund industry
- 访问数据库使用redis作为mysql的缓存(redis和mysql结合)
猜你喜欢

Zabbix

职场进阶指南:大厂人必看书籍推荐

What are the requirements for PMP certification? How much is it?

破解湖+仓混合架构顽疾,星环科技推出自主可控云原生湖仓一体平台
![含重复元素取不重复子集[如何取子集?如何去重?]](/img/b2/d019c3f0b85a6c0d334a092fa6c23c.png)
含重复元素取不重复子集[如何取子集?如何去重?]

Mask wearing detection based on yolov3

模拟百囚徒问题

How awesome is the architecture of "12306"?

ISPRS2022/云检测:Cloud detection with boundary nets基于边界网的云检测

Sophon base 3.1 launched mlops function to provide wings for the operation of enterprise AI capabilities
随机推荐
热通孔的有效放置如何改善PCB设计中的热管理?
LeetCode 练习——206. 反转链表
Size_t 是无符号的
Teamcenter 消息注册前操作或后操作
Cmake tutorial step1 (basic starting point)
职场进阶指南:大厂人必看书籍推荐
The comprehensive competitiveness of Huawei cloud native containers ranks first in China!
QT console printout
小林coding的内存管理章节
Privacy computing helps secure data circulation and sharing
Cmake tutorial Step2 (add Library)
Read libco save and restore the on-site assembly code
Use QT designer interface class to create two interfaces, and switch from interface 1 to interface 2 by pressing the key
Thesis reading_ Chinese NLP_ LTP
Penetrate the whole intranet through socks agent
LeetCode每日一题:合并两个有序数组
Ten capabilities that cyber threat analysts should have
Sophon CE Community Edition is online, and free get is a lightweight, easy-to-use, efficient and intelligent data analysis tool
登录连接 CDB 和 PDB
mybash