未验证 提交 ff62e6ff 编写于 作者: S shangliang Xu 提交者: GitHub

[TIPC] fix fleet train shell name, test=document_fix (#6176)

上级 60631c65
...@@ -20,7 +20,7 @@ inference:./deploy/cpp/build/main ...@@ -20,7 +20,7 @@ inference:./deploy/cpp/build/main
--device:gpu|cpu --device:gpu|cpu
--use_mkldnn:False --use_mkldnn:False
--cpu_threads:4 --cpu_threads:4
--batch_size:1|2 --batch_size:1
--use_tensorrt:null --use_tensorrt:null
--run_mode:paddle --run_mode:paddle
--model_dir_keypoint: --model_dir_keypoint:
......
...@@ -31,10 +31,10 @@ Linux GPU/CPU 多机多卡训练推理测试的主程序为`test_train_fleet_inf ...@@ -31,10 +31,10 @@ Linux GPU/CPU 多机多卡训练推理测试的主程序为`test_train_fleet_inf
#### 2.1.2 准备数据 #### 2.1.2 准备数据
运行`prepare.sh`准备数据和模型,以配置文件`test_tipc/configs/ppyoloe/ppyoloe_crn_s_300e_coco_train_fleet_infer_python.txt`为例,数据准备命令如下所示。 运行`prepare.sh`准备数据和模型,以配置文件`test_tipc/configs/ppyoloe/ppyoloe_crn_s_300e_coco_train_linux_gpu_fleet_normal_infer_python_linux_gpu_cpu.txt`为例,数据准备命令如下所示。
```shell ```shell
bash test_tipc/prepare.sh test_tipc/configs/ppyoloe/ppyoloe_crn_s_300e_coco_train_fleet_infer_python.txt lite_train_lite_infer bash test_tipc/prepare.sh test_tipc/configs/ppyoloe/ppyoloe_crn_s_300e_coco_train_linux_gpu_fleet_normal_infer_python_linux_gpu_cpu.txt lite_train_lite_infer
``` ```
**注意:** 由于是多机训练,这里需要在所有的节点上均运行启动上述命令,准备数据。 **注意:** 由于是多机训练,这里需要在所有的节点上均运行启动上述命令,准备数据。
...@@ -47,10 +47,10 @@ bash test_tipc/prepare.sh test_tipc/configs/ppyoloe/ppyoloe_crn_s_300e_coco_trai ...@@ -47,10 +47,10 @@ bash test_tipc/prepare.sh test_tipc/configs/ppyoloe/ppyoloe_crn_s_300e_coco_trai
export FLAGS_START_PORT=17000 export FLAGS_START_PORT=17000
``` ```
以配置文件`test_tipc/configs/ppyoloe/ppyoloe_crn_s_300e_coco_train_fleet_infer_python.txt`为例,测试方法如下所示。 以配置文件`test_tipc/configs/ppyoloe/ppyoloe_crn_s_300e_coco_train_linux_gpu_fleet_normal_infer_python_linux_gpu_cpu.txt`为例,测试方法如下所示。
```shell ```shell
bash test_tipc/test_train_inference_python.sh test_tipc/configs/ppyoloe/ppyoloe_crn_s_300e_coco_train_fleet_infer_python.txt lite_train_lite_infer bash test_tipc/test_train_inference_python.sh test_tipc/configs/ppyoloe/ppyoloe_crn_s_300e_coco_train_linux_gpu_fleet_normal_infer_python_linux_gpu_cpu.txt lite_train_lite_infer
``` ```
**注意:** 由于是多机训练,这里需要在所有的节点上均运行启动上述命令进行测试。 **注意:** 由于是多机训练,这里需要在所有的节点上均运行启动上述命令进行测试。
...@@ -65,7 +65,7 @@ bash test_tipc/test_train_inference_python.sh test_tipc/configs/ppyoloe/ppyoloe ...@@ -65,7 +65,7 @@ bash test_tipc/test_train_inference_python.sh test_tipc/configs/ppyoloe/ppyoloe
tools/train.py -c configs/ppyoloe/ppyoloe_crn_s_300e_coco.yml -o log_iter=1 use_gpu=True save_dir=./test_tipc/outpu tools/train.py -c configs/ppyoloe/ppyoloe_crn_s_300e_coco.yml -o log_iter=1 use_gpu=True save_dir=./test_tipc/outpu
t/ppyoloe_crn_s_300e_coco/norm_train_gpus_0,1_autocast_null_nodes_2 epoch=1 pretrain_weights=https://paddledet.bj.bc t/ppyoloe_crn_s_300e_coco/norm_train_gpus_0,1_autocast_null_nodes_2 epoch=1 pretrain_weights=https://paddledet.bj.bc
ebos.com/models/ppyoloe_crn_s_300e_coco.pdparams TrainReader.batch_size=2 filename=ppyoloe_crn_s_300e_coco ! ebos.com/models/ppyoloe_crn_s_300e_coco.pdparams TrainReader.batch_size=2 filename=ppyoloe_crn_s_300e_coco !
...... ......
Run successfully with command - python3.7 ./deploy/python/infer.py --device=cpu --enable_mkldnn=False --cpu_threads Run successfully with command - python3.7 ./deploy/python/infer.py --device=cpu --enable_mkldnn=False --cpu_threads
=4 --model_dir=./test_tipc/output/ppyoloe_crn_s_300e_coco/norm_train_gpus_0,1_autocast_null_nodes_2/ppyoloe_crn_s_30 =4 --model_dir=./test_tipc/output/ppyoloe_crn_s_300e_coco/norm_train_gpus_0,1_autocast_null_nodes_2/ppyoloe_crn_s_30
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册