Skip to content

Commit a6d6c44

Browse files
authored
[Docs] Fix mdformat version to support python3.6 and remove ruby install (open-mmlab#1672)
* [Docs] Fix mdformat version to support python3.6 and remove ruby install * fix lint
1 parent 6f43f4d commit a6d6c44

File tree

4 files changed

+34
-37
lines changed

4 files changed

+34
-37
lines changed

.github/workflows/lint.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ jobs:
2121
pre-commit install
2222
- name: Linting
2323
run: |
24-
sudo apt-add-repository ppa:brightbox/ruby-ng -y
25-
sudo apt-get update
26-
sudo apt-get install -y ruby2.7
2724
pre-commit run --all-files
2825
- name: Check docstring coverage
2926
run: |

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ repos:
2525
- id: mixed-line-ending
2626
args: ["--fix=lf"]
2727
- repo: https://github.com/executablebooks/mdformat
28-
rev: 0.7.14
28+
rev: 0.7.9
2929
hooks:
3030
- id: mdformat
3131
args: ["--number"]
3232
additional_dependencies:
33-
- mdformat-gfm
33+
- mdformat-openmmlab
3434
- mdformat_frontmatter
3535
- linkify-it-py
3636
- repo: https://github.com/codespell-project/codespell

docs/zh_cn/get_started.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,29 @@
99

1010
可编译的 MMSegmentation 和 MMCV 版本如下所示,请对照对应版本安装以避免安装问题。
1111

12-
| MMSegmentation 版本 | MMCV 版本 | MMClassification 版本 |
13-
| :---------------: | :-------------------------: | :---------------------: |
14-
| master | mmcv-full>=1.4.4, \<=1.6.0 | mmcls>=0.20.1, \<=1.0.0 |
15-
| 0.24.1 | mmcv-full>=1.4.4, \<=1.6.0 | mmcls>=0.20.1, \<=1.0.0 |
16-
| 0.23.0 | mmcv-full>=1.4.4, \<=1.6.0 | mmcls>=0.20.1, \<=1.0.0 |
17-
| 0.22.0 | mmcv-full>=1.4.4, \<=1.6.0 | mmcls>=0.20.1, \<=1.0.0 |
18-
| 0.21.1 | mmcv-full>=1.4.4, \<=1.6.0 | Not required |
19-
| 0.20.2 | mmcv-full>=1.3.13, \<=1.6.0 | Not required |
20-
| 0.19.0 | mmcv-full>=1.3.13, \<1.3.17 | Not required |
21-
| 0.18.0 | mmcv-full>=1.3.13, \<1.3.17 | Not required |
22-
| 0.17.0 | mmcv-full>=1.3.7, \<1.3.17 | Not required |
23-
| 0.16.0 | mmcv-full>=1.3.7, \<1.3.17 | Not required |
24-
| 0.15.0 | mmcv-full>=1.3.7, \<1.3.17 | Not required |
25-
| 0.14.1 | mmcv-full>=1.3.7, \<1.3.17 | Not required |
26-
| 0.14.0 | mmcv-full>=1.3.1, \<1.3.2 | Not required |
27-
| 0.13.0 | mmcv-full>=1.3.1, \<1.3.2 | Not required |
28-
| 0.12.0 | mmcv-full>=1.1.4, \<1.3.2 | Not required |
29-
| 0.11.0 | mmcv-full>=1.1.4, \<1.3.0 | Not required |
30-
| 0.10.0 | mmcv-full>=1.1.4, \<1.3.0 | Not required |
31-
| 0.9.0 | mmcv-full>=1.1.4, \<1.3.0 | Not required |
32-
| 0.8.0 | mmcv-full>=1.1.4, \<1.2.0 | Not required |
33-
| 0.7.0 | mmcv-full>=1.1.2, \<1.2.0 | Not required |
34-
| 0.6.0 | mmcv-full>=1.1.2, \<1.2.0 | Not required |
12+
| MMSegmentation 版本 | MMCV 版本 | MMClassification 版本 |
13+
| :-----------------: | :-------------------------: | :---------------------: |
14+
| master | mmcv-full>=1.4.4, \<=1.6.0 | mmcls>=0.20.1, \<=1.0.0 |
15+
| 0.24.1 | mmcv-full>=1.4.4, \<=1.6.0 | mmcls>=0.20.1, \<=1.0.0 |
16+
| 0.23.0 | mmcv-full>=1.4.4, \<=1.6.0 | mmcls>=0.20.1, \<=1.0.0 |
17+
| 0.22.0 | mmcv-full>=1.4.4, \<=1.6.0 | mmcls>=0.20.1, \<=1.0.0 |
18+
| 0.21.1 | mmcv-full>=1.4.4, \<=1.6.0 | Not required |
19+
| 0.20.2 | mmcv-full>=1.3.13, \<=1.6.0 | Not required |
20+
| 0.19.0 | mmcv-full>=1.3.13, \<1.3.17 | Not required |
21+
| 0.18.0 | mmcv-full>=1.3.13, \<1.3.17 | Not required |
22+
| 0.17.0 | mmcv-full>=1.3.7, \<1.3.17 | Not required |
23+
| 0.16.0 | mmcv-full>=1.3.7, \<1.3.17 | Not required |
24+
| 0.15.0 | mmcv-full>=1.3.7, \<1.3.17 | Not required |
25+
| 0.14.1 | mmcv-full>=1.3.7, \<1.3.17 | Not required |
26+
| 0.14.0 | mmcv-full>=1.3.1, \<1.3.2 | Not required |
27+
| 0.13.0 | mmcv-full>=1.3.1, \<1.3.2 | Not required |
28+
| 0.12.0 | mmcv-full>=1.1.4, \<1.3.2 | Not required |
29+
| 0.11.0 | mmcv-full>=1.1.4, \<1.3.0 | Not required |
30+
| 0.10.0 | mmcv-full>=1.1.4, \<1.3.0 | Not required |
31+
| 0.9.0 | mmcv-full>=1.1.4, \<1.3.0 | Not required |
32+
| 0.8.0 | mmcv-full>=1.1.4, \<1.2.0 | Not required |
33+
| 0.7.0 | mmcv-full>=1.1.2, \<1.2.0 | Not required |
34+
| 0.6.0 | mmcv-full>=1.1.2, \<1.2.0 | Not required |
3535

3636
注意: 如果您已经安装好 mmcv, 您首先需要运行 `pip uninstall mmcv`
3737
如果 mmcv 和 mmcv-full 同时被安装,会报错 `ModuleNotFoundError`

docs/zh_cn/useful_tools.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,15 @@ python tools/deploy_test.py \
126126

127127
#### 结果和模型
128128

129-
| 模型 | 配置文件 | 数据集 | 评价指标 | PyTorch | ONNXRuntime | TensorRT-fp32 | TensorRT-fp16 |
130-
| :--------: | :---------------------------------------------: | :--------: | :--: | :-----: | :---------: | :-----------: | :-----------: |
131-
| FCN | fcn_r50-d8_512x1024_40k_cityscapes.py | cityscapes | mIoU | 72.2 | 72.2 | 72.2 | 72.2 |
132-
| PSPNet | pspnet_r50-d8_512x1024_40k_cityscapes.py | cityscapes | mIoU | 77.8 | 77.8 | 77.8 | 77.8 |
133-
| deeplabv3 | deeplabv3_r50-d8_512x1024_40k_cityscapes.py | cityscapes | mIoU | 79.0 | 79.0 | 79.0 | 79.0 |
134-
| deeplabv3+ | deeplabv3plus_r50-d8_512x1024_40k_cityscapes.py | cityscapes | mIoU | 79.6 | 79.5 | 79.5 | 79.5 |
135-
| PSPNet | pspnet_r50-d8_769x769_40k_cityscapes.py | cityscapes | mIoU | 78.2 | 78.1 | | |
136-
| deeplabv3 | deeplabv3_r50-d8_769x769_40k_cityscapes.py | cityscapes | mIoU | 78.5 | 78.3 | | |
137-
| deeplabv3+ | deeplabv3plus_r50-d8_769x769_40k_cityscapes.py | cityscapes | mIoU | 78.9 | 78.7 | | |
129+
| 模型 | 配置文件 | 数据集 | 评价指标 | PyTorch | ONNXRuntime | TensorRT-fp32 | TensorRT-fp16 |
130+
| :--------: | :---------------------------------------------: | :--------: | :------: | :-----: | :---------: | :-----------: | :-----------: |
131+
| FCN | fcn_r50-d8_512x1024_40k_cityscapes.py | cityscapes | mIoU | 72.2 | 72.2 | 72.2 | 72.2 |
132+
| PSPNet | pspnet_r50-d8_512x1024_40k_cityscapes.py | cityscapes | mIoU | 77.8 | 77.8 | 77.8 | 77.8 |
133+
| deeplabv3 | deeplabv3_r50-d8_512x1024_40k_cityscapes.py | cityscapes | mIoU | 79.0 | 79.0 | 79.0 | 79.0 |
134+
| deeplabv3+ | deeplabv3plus_r50-d8_512x1024_40k_cityscapes.py | cityscapes | mIoU | 79.6 | 79.5 | 79.5 | 79.5 |
135+
| PSPNet | pspnet_r50-d8_769x769_40k_cityscapes.py | cityscapes | mIoU | 78.2 | 78.1 | | |
136+
| deeplabv3 | deeplabv3_r50-d8_769x769_40k_cityscapes.py | cityscapes | mIoU | 78.5 | 78.3 | | |
137+
| deeplabv3+ | deeplabv3plus_r50-d8_769x769_40k_cityscapes.py | cityscapes | mIoU | 78.9 | 78.7 | | |
138138

139139
**注意**: TensorRT 仅在使用 `whole mode` 测试模式时的配置文件里可用。
140140

0 commit comments

Comments
 (0)