mirror of
https://github.com/open-mmlab/mmsegmentation.git
synced 2025-06-03 22:03:48 +08:00
[Docs] Fix typo (#1263)
1. Fix img path typo in `useful_tools.md`, `zh_cn/model_zoo.md`, and `zh_cn/train.md` 2. Add missing content in `zh_cn/useful_tools.md` to to match `en/useful_tools.md`
This commit is contained in:
parent
29cfcd145c
commit
f599d388cf
@ -1,3 +1,5 @@
|
|||||||
|
## Useful tools
|
||||||
|
|
||||||
Apart from training/testing scripts, We provide lots of useful tools under the
|
Apart from training/testing scripts, We provide lots of useful tools under the
|
||||||
`tools/` directory.
|
`tools/` directory.
|
||||||
|
|
||||||
@ -358,7 +360,7 @@ plt.show()
|
|||||||
|
|
||||||
You should see something similar to:
|
You should see something similar to:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
And you can use `test_torchserve.py` to compare result of torchserve and pytorch, and visualize them.
|
And you can use `test_torchserve.py` to compare result of torchserve and pytorch, and visualize them.
|
||||||
|
|
||||||
|
@ -19,107 +19,107 @@
|
|||||||
|
|
||||||
### FCN
|
### FCN
|
||||||
|
|
||||||
请参考 [FCN](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/fcn) for details.
|
请参考 [FCN](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/fcn) 获得详细信息。
|
||||||
|
|
||||||
### PSPNet
|
### PSPNet
|
||||||
|
|
||||||
请参考 [PSPNet](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/pspnet) for details.
|
请参考 [PSPNet](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/pspnet) 获得详细信息。
|
||||||
|
|
||||||
### DeepLabV3
|
### DeepLabV3
|
||||||
|
|
||||||
请参考 [DeepLabV3](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/deeplabv3) for details.
|
请参考 [DeepLabV3](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/deeplabv3) 获得详细信息。
|
||||||
|
|
||||||
### PSANet
|
### PSANet
|
||||||
|
|
||||||
请参考 [PSANet](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/psanet) for details.
|
请参考 [PSANet](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/psanet) 获得详细信息。
|
||||||
|
|
||||||
### DeepLabV3+
|
### DeepLabV3+
|
||||||
|
|
||||||
请参考 [DeepLabV3+](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/deeplabv3plus) for details.
|
请参考 [DeepLabV3+](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/deeplabv3plus) 获得详细信息。
|
||||||
|
|
||||||
### UPerNet
|
### UPerNet
|
||||||
|
|
||||||
请参考 [UPerNet](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/upernet) for details.
|
请参考 [UPerNet](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/upernet) 获得详细信息。
|
||||||
|
|
||||||
### NonLocal Net
|
### NonLocal Net
|
||||||
|
|
||||||
请参考 [NonLocal Net](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/nlnet) for details.
|
请参考 [NonLocal Net](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/nlnet) 获得详细信息。
|
||||||
|
|
||||||
### EncNet
|
### EncNet
|
||||||
|
|
||||||
请参考 [EncNet](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/encnet) for details.
|
请参考 [EncNet](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/encnet) 获得详细信息。
|
||||||
|
|
||||||
### CCNet
|
### CCNet
|
||||||
|
|
||||||
请参考 [CCNet](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/ccnet) for details.
|
请参考 [CCNet](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/ccnet) 获得详细信息。
|
||||||
|
|
||||||
### DANet
|
### DANet
|
||||||
|
|
||||||
请参考 [DANet](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/danet) for details.
|
请参考 [DANet](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/danet) 获得详细信息。
|
||||||
|
|
||||||
### APCNet
|
### APCNet
|
||||||
|
|
||||||
请参考 [APCNet](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/apcnet) for details.
|
请参考 [APCNet](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/apcnet) 获得详细信息。
|
||||||
|
|
||||||
### HRNet
|
### HRNet
|
||||||
|
|
||||||
请参考 [HRNet](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/hrnet) for details.
|
请参考 [HRNet](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/hrnet) 获得详细信息。
|
||||||
|
|
||||||
### GCNet
|
### GCNet
|
||||||
|
|
||||||
请参考 [GCNet](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/gcnet) for details.
|
请参考 [GCNet](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/gcnet) 获得详细信息。
|
||||||
|
|
||||||
### DMNet
|
### DMNet
|
||||||
|
|
||||||
请参考 [DMNet](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/dmnet) for details.
|
请参考 [DMNet](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/dmnet) 获得详细信息。
|
||||||
|
|
||||||
### ANN
|
### ANN
|
||||||
|
|
||||||
请参考 [ANN](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/ann) for details.
|
请参考 [ANN](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/ann) 获得详细信息。
|
||||||
|
|
||||||
### OCRNet
|
### OCRNet
|
||||||
|
|
||||||
请参考 [OCRNet](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/ocrnet) for details.
|
请参考 [OCRNet](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/ocrnet) 获得详细信息。
|
||||||
|
|
||||||
### Fast-SCNN
|
### Fast-SCNN
|
||||||
|
|
||||||
请参考 [Fast-SCNN](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/fastscnn) for details.
|
请参考 [Fast-SCNN](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/fastscnn) 获得详细信息。
|
||||||
|
|
||||||
### ResNeSt
|
### ResNeSt
|
||||||
|
|
||||||
请参考 [ResNeSt](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/resnest) for details.
|
请参考 [ResNeSt](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/resnest) 获得详细信息。
|
||||||
|
|
||||||
### Semantic FPN
|
### Semantic FPN
|
||||||
|
|
||||||
请参考 [Semantic FPN](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/semfpn) for details.
|
请参考 [Semantic FPN](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/semfpn) 获得详细信息。
|
||||||
|
|
||||||
### PointRend
|
### PointRend
|
||||||
|
|
||||||
请参考 [PointRend](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/point_rend) for details.
|
请参考 [PointRend](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/point_rend) 获得详细信息。
|
||||||
|
|
||||||
### MobileNetV2
|
### MobileNetV2
|
||||||
|
|
||||||
请参考 [MobileNetV2](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/mobilenet_v2) for details.
|
请参考 [MobileNetV2](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/mobilenet_v2) 获得详细信息。
|
||||||
|
|
||||||
### MobileNetV3
|
### MobileNetV3
|
||||||
|
|
||||||
请参考 [MobileNetV3](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/mobilenet_v3) for details.
|
请参考 [MobileNetV3](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/mobilenet_v3) 获得详细信息。
|
||||||
|
|
||||||
### EMANet
|
### EMANet
|
||||||
|
|
||||||
请参考 [EMANet](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/emanet) for details.
|
请参考 [EMANet](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/emanet) 获得详细信息。
|
||||||
|
|
||||||
### DNLNet
|
### DNLNet
|
||||||
|
|
||||||
请参考 [DNLNet](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/dnlnet) for details.
|
请参考 [DNLNet](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/dnlnet) 获得详细信息。
|
||||||
|
|
||||||
### CGNet
|
### CGNet
|
||||||
|
|
||||||
请参考 [CGNet](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/cgnet) for details.
|
请参考 [CGNet](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/cgnet) 获得详细信息。
|
||||||
|
|
||||||
### Mixed Precision (FP16) Training
|
### Mixed Precision (FP16) Training
|
||||||
|
|
||||||
请参考 [Mixed Precision (FP16) Training 在 BiSeNetV2 训练的样例](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/bisenetv2/bisenetv2_fcn_fp16_4x4_1024x1024_160k_cityscapes.py) for details.
|
请参考 [Mixed Precision (FP16) Training 在 BiSeNetV2 训练的样例](https://github.com/open-mmlab/mmsegmentation/blob/master/configs/bisenetv2/bisenetv2_fcn_fp16_4x4_1024x1024_160k_cityscapes.py) 获得详细信息。
|
||||||
|
|
||||||
## 速度标定
|
## 速度标定
|
||||||
|
|
||||||
@ -149,4 +149,4 @@
|
|||||||
| [CASILVision](https://github.com/CSAILVision/semantic-segmentation-pytorch) | 1.15 | N/A |
|
| [CASILVision](https://github.com/CSAILVision/semantic-segmentation-pytorch) | 1.15 | N/A |
|
||||||
| [vedaseg](https://github.com/Media-Smart/vedaseg) | 0.95 | 1.25 |
|
| [vedaseg](https://github.com/Media-Smart/vedaseg) | 0.95 | 1.25 |
|
||||||
|
|
||||||
注意:DeepLabV3+ 的输出步长为 8
|
注意:DeepLabV3+ 的输出步长为 8。
|
||||||
|
@ -10,7 +10,7 @@ MMSegmentation 可以执行分布式训练和非分布式训练,分别使用 `
|
|||||||
evaluation = dict(interval=4000) # 每4000 iterations 评估一次模型的性能
|
evaluation = dict(interval=4000) # 每4000 iterations 评估一次模型的性能
|
||||||
```
|
```
|
||||||
|
|
||||||
**\*Important\***: 在配置文件里的默认学习率是针对4卡 GPU 和2张图/GPU (此时 batchsize = 4x2 = 8)来设置的。
|
**\*重要提示\***: 在配置文件里的默认学习率是针对4卡 GPU 和2张图/GPU (此时 batchsize = 4x2 = 8)来设置的。
|
||||||
同样,您也可以使用8卡 GPU 和 1张图/GPU 的设置,因为所有的模型均使用 cross-GPU 的 SyncBN 模式。
|
同样,您也可以使用8卡 GPU 和 1张图/GPU 的设置,因为所有的模型均使用 cross-GPU 的 SyncBN 模式。
|
||||||
|
|
||||||
我们可以在训练速度和 GPU 显存之间做平衡。当模型或者 Batch Size 比较大的时,可以传递`--cfg-options model.backbone.with_cp=True` ,使用 `with_cp` 来节省显存,但是速度会更慢,因为原先使用 `ith_cp` 时,是逐层反向传播(Back Propagation, BP),不会保存所有的梯度。
|
我们可以在训练速度和 GPU 显存之间做平衡。当模型或者 Batch Size 比较大的时,可以传递`--cfg-options model.backbone.with_cp=True` ,使用 `with_cp` 来节省显存,但是速度会更慢,因为原先使用 `ith_cp` 时,是逐层反向传播(Back Propagation, BP),不会保存所有的梯度。
|
||||||
@ -21,7 +21,7 @@ evaluation = dict(interval=4000) # 每4000 iterations 评估一次模型的性
|
|||||||
python tools/train.py ${配置文件} [可选参数]
|
python tools/train.py ${配置文件} [可选参数]
|
||||||
```
|
```
|
||||||
|
|
||||||
如果您想在命令里定义工作文件夹路径,您可以添加一个参数`--work-dir ${YOUR_WORK_DIR}`。
|
如果您想在命令里定义工作文件夹路径,您可以添加一个参数`--work-dir ${工作路径}`。
|
||||||
|
|
||||||
### 使用 CPU 训练
|
### 使用 CPU 训练
|
||||||
|
|
||||||
|
@ -348,4 +348,21 @@ plt.show()
|
|||||||
|
|
||||||
看到的东西将会和下图类似:
|
看到的东西将会和下图类似:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
然后您可以使用 `test_torchserve.py` 比较 torchserve 和 pytorch 的结果,并将它们可视化。
|
||||||
|
|
||||||
|
```shell
|
||||||
|
python tools/torchserve/test_torchserve.py ${IMAGE_FILE} ${CONFIG_FILE} ${CHECKPOINT_FILE} ${MODEL_NAME}
|
||||||
|
[--inference-addr ${INFERENCE_ADDR}] [--result-image ${RESULT_IMAGE}] [--device ${DEVICE}]
|
||||||
|
```
|
||||||
|
|
||||||
|
示例:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
python tools/torchserve/test_torchserve.py \
|
||||||
|
demo/demo.png \
|
||||||
|
configs/fcn/fcn_r50-d8_512x1024_40k_cityscapes.py \
|
||||||
|
checkpoint/fcn_r50-d8_512x1024_40k_cityscapes_20200604_192608-efe53f0d.pth \
|
||||||
|
fcn
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user