Skip to content

Commit 3cbbc8d

Browse files
authored
Update README.md
1 parent 4413e6e commit 3cbbc8d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ The code is developed under the following configurations.
7373
1. Download the ADE20K scene parsing dataset:
7474
```bash
7575
chmod +x download_ADE20K.sh
76-
./download_ADE20K.sh
76+
. download_ADE20K.sh
7777
```
7878
2. Train a network (default: resnet34_dilated8). During training, checkpoints will be saved in folder ```ckpt```, visual results will be saved in folder ```vis```.
7979
```bash
@@ -121,17 +121,17 @@ usage: eval.py [-h] --id ID [--suffix SUFFIX] [--arch_encoder ARCH_ENCODER]
121121

122122

123123
## Test/Inference
124-
1. Do inference on a single image:
124+
1. Here is a simple demo to do inference on a single image:
125125
```bash
126-
python test.py --ckpt CKPT_PATH --id MODEL_ID --test_img TEST_IMG
126+
. demo_test.sh
127127
```
128128
2. Input arguments: (see full input arguments via ```python test.py -h ```)
129129
```bash
130-
usage: test.py [-h] --id ID [--suffix SUFFIX] [--arch_encoder ARCH_ENCODER]
131-
[--arch_decoder ARCH_DECODER] [--fc_dim FC_DIM] --test_img
132-
TEST_IMG [--num_val NUM_VAL] [--batch_size BATCH_SIZE]
133-
              [--imgSize IMGSIZE] [--segSize SEGSIZE] [--num_class NUM_CLASS]
134-
[--ckpt CKPT] [--visualize VISUALIZE] [--result RESULT]
130+
usage: test.py [-h] --test_img TEST_IMG --model_path MODEL_PATH
131+
[--suffix SUFFIX] [--result RESULT]
132+
[--arch_encoder ARCH_ENCODER] [--arch_decoder ARCH_DECODER]
133+
[--fc_dim FC_DIM] [--num_class NUM_CLASS] [--imgSize IMGSIZE]
134+
[--segSize SEGSIZE]
135135
```
136136

137137
## Reference

0 commit comments

Comments
 (0)