Skip to content

Commit dbacad2

Browse files
authoredOct 12, 2022
[Enhancement] Update user api and docs with tools/xxx (PaddlePaddle#2603)
1 parent 57a16a0 commit dbacad2

File tree

88 files changed

+263
-268
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+263
-268
lines changed
 

‎configs/pp_liteseg/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export model=pp_liteseg_stdc1_cityscapes_1024x512_scale0.5_160k # test resol
5454
# export model=pp_liteseg_stdc2_cityscapes_1024x512_scale1.0_160k
5555
# export model=pp_liteseg_stdc1_camvid_960x720_10k
5656
# export model=pp_liteseg_stdc2_camvid_960x720_10k
57-
python -m paddle.distributed.launch train.py \
57+
python -m paddle.distributed.launch tools/train.py \
5858
--config configs/pp_liteseg/${model}.yml \
5959
--save_dir output/${model} \
6060
--save_interval 1000 \
@@ -77,7 +77,7 @@ Refer to [doc](../../docs/evaluation/evaluate/evaluate.md) for the detailed usag
7777
export CUDA_VISIBLE_DEVICES=0
7878
export model=pp_liteseg_stdc1_cityscapes_1024x512_scale0.5_160k
7979
# export other model
80-
python val.py \
80+
python tools/val.py \
8181
--config configs/pp_liteseg/${model}.yml \
8282
--model_path output/${model}/best_model/model.pdparams \
8383
--num_workers 3

‎configs/pssl/README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ Make sure that the datasets have structures as follows:
3636

3737
```
3838
PaddleSeg
39-
│ train.py
4039
│ ...
4140
4241
└───data
@@ -72,7 +71,7 @@ Having installed PaddlePaddle and PaddleSeg and prepared datasets (ImageNet and
7271
export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7
7372

7473
path_save="work_dirs_stdc2_pssl"
75-
python -m paddle.distributed.launch --log_dir $path_save train.py \
74+
python -m paddle.distributed.launch --log_dir $path_save tools/train.py \
7675
--config configs/pssl/stdc2_seg_pssl.yml \
7776
--log_iters 200 \
7877
--num_workers 12 \
@@ -87,7 +86,7 @@ python -m paddle.distributed.launch --log_dir $path_save train.py \
8786
export CUDA_VISIBLE_DEVICES=0,1,2,3,4,5,6,7
8887

8988
path_save="work_dirs_pp_liteseg_stdc2_pssl"
90-
python -m paddle.distributed.launch --log_dir $path_save train.py \
89+
python -m paddle.distributed.launch --log_dir $path_save tools/train.py \
9190
--config configs/pssl/pp_liteseg_stdc2_pssl.yml \
9291
--log_iters 100 \
9392
--num_workers 12 \

0 commit comments

Comments
 (0)
Please sign in to comment.