Skip to content

Commit

Permalink
fix flake8 of readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Fzilan committed Sep 4, 2023
1 parent f1ddbe3 commit ba9e10f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/seg/deeplabv3/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ This example provides an implementation of DeepLabV3 using backbones from MindCV
......
```

- Convert training dataset to mindrecords by running ``bulid_seg_data.py `` script.
- Convert training dataset to mindrecords by running ``bulid_seg_data.py `` script.

```shell
python examples/seg/deeplabv3/bulid_dataset/bulid_seg_data.py \
--data_root=[root path of training data] \
--data_lst=[path of data list file prepared above] \
--dst_path=[path to save mindrecords] \
--num_shards=8 \
--shuffle=True
--shuffle=True
```

* In accord with paper, we train on *trainaug* dataset (voc train + SBD) and evaluate on *voc val* dataset.
Expand Down Expand Up @@ -79,7 +79,7 @@ for ((i = 0; i < ${DEVICE_NUM}; i++)); do
done
```
and start training by running:
and start training by running:
```shell l
cd mindcv # change directory to the root of MindCV repository
bash ascend8p.sh
Expand Down Expand Up @@ -122,7 +122,7 @@ python examples/det/ssd/eval.py --config examples/seg/deeplabv3/deeplabv3_s8_dil
### Model results
### Model results
| Train OS | Infer OS | MS | FLIP | mIoU | Config | Download |
Expand All @@ -135,8 +135,8 @@ python examples/det/ssd/eval.py --config examples/seg/deeplabv3/deeplabv3_s8_dil
**Note**: **OS**: output stride. **MS**: multiscale inputs during test. **Flip**: adding left-right flipped inputs during test. **Train OS = 16** means training step 1 mentioned in train scetion above, and **Train OS = 16, 8** means the entire two-step training.
As illustrated in paper, adding left-right flipped inputs or muilt-scale inputs during test could improve the performence. Also, once the model is finally trained, employed output_stride=8 during inference bring improvement over using output_stride=16.
As illustrated in paper, adding left-right flipped inputs or muilt-scale inputs during test could improve the performence. Also, once the model is finally trained, employed output_stride=8 during inference bring improvement over using output_stride=16.
## References
[1] Chen L C, Papandreou G, Schroff F, et al. Rethinking atrous convolution for semantic image segmentation[J]. arXiv preprint arXiv:1706.05587, 2017.
[1] Chen L C, Papandreou G, Schroff F, et al. Rethinking atrous convolution for semantic image segmentation[J]. arXiv preprint arXiv:1706.05587, 2017.

0 comments on commit ba9e10f

Please sign in to comment.