Skip to content

Commit 04bb4ab

Browse files
committed
Merge branch 'master' of github.com:hangzhaomit/semantic-segmentation-pytorch
2 parents 7a54edb + 44fe252 commit 04bb4ab

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,17 +121,18 @@ 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+
chmod +x demo_test.sh
127+
./demo_test.sh
127128
```
128129
2. Input arguments: (see full input arguments via ```python test.py -h ```)
129130
```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]
131+
usage: test.py [-h] --test_img TEST_IMG --model_path MODEL_PATH
132+
[--suffix SUFFIX] [--result RESULT]
133+
[--arch_encoder ARCH_ENCODER] [--arch_decoder ARCH_DECODER]
134+
[--fc_dim FC_DIM] [--num_class NUM_CLASS] [--imgSize IMGSIZE]
135+
[--segSize SEGSIZE]
135136
```
136137

137138
## Reference

0 commit comments

Comments
 (0)