fix(zh_CN): doc link (#447)
* docs(zh_CN): fix link missing * docs(benchmark.md): fix pytorch typopull/467/head
parent
3e4547d17b
commit
9a4028bd49
|
@ -11,7 +11,10 @@ def make_parser():
|
|||
parser.add_argument(
|
||||
'--http', default=False, type=bool, help='check http or not ')
|
||||
parser.add_argument(
|
||||
'--dir', default='./docs', type=str, help='the directory to be check')
|
||||
'--target',
|
||||
default='./docs',
|
||||
type=str,
|
||||
help='the directory or file to check')
|
||||
return parser
|
||||
|
||||
|
||||
|
@ -19,6 +22,7 @@ pattern = re.compile(r'\[.*?\]\(.*?\)')
|
|||
|
||||
|
||||
def analyze_doc(home, path):
|
||||
print('analyze {}'.format(path))
|
||||
problem_list = []
|
||||
with open(path) as f:
|
||||
lines = f.readlines()
|
||||
|
@ -44,12 +48,14 @@ def analyze_doc(home, path):
|
|||
for item in problem_list:
|
||||
print(f'\t {item}')
|
||||
print('\n')
|
||||
raise Exception('found link error')
|
||||
|
||||
|
||||
def traverse(_dir):
|
||||
for home, dirs, files in os.walk(_dir):
|
||||
if './target' in home or './.github' in home:
|
||||
continue
|
||||
def traverse(target):
|
||||
if os.path.isfile(target):
|
||||
analyze_doc('./', target)
|
||||
return
|
||||
for home, dirs, files in os.walk(target):
|
||||
for filename in files:
|
||||
if filename.endswith('.md'):
|
||||
path = os.path.join(home, filename)
|
||||
|
@ -59,4 +65,4 @@ def traverse(_dir):
|
|||
|
||||
if __name__ == '__main__':
|
||||
args = make_parser().parse_args()
|
||||
traverse(args.dir)
|
||||
traverse(args.target)
|
||||
|
|
|
@ -14,4 +14,5 @@ jobs:
|
|||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.7'
|
||||
- run: python3 .github/scripts/doc_link_checker.py --dir docs/zh_cn
|
||||
- run: python3 .github/scripts/doc_link_checker.py --target docs/zh_cn
|
||||
- run: python3 .github/scripts/doc_link_checker.py --target README_zh-CN.md
|
||||
|
|
|
@ -48,12 +48,12 @@ MMDeploy 是 [OpenMMLab](https://openmmlab.com/) 模型部署工具箱,**为
|
|||
- mmocr
|
||||
- mmpose
|
||||
- mmseg
|
||||
- [支持列表](docs/zh_cn/05-benchmark/supported_models.md)
|
||||
- [支持列表](docs/zh_cn/03-benchmark/supported_models.md)
|
||||
|
||||
### 支持多种推理后端
|
||||
|ONNX Runtime|TensorRT|ppl.nn|ncnn|OpenVINO|more|
|
||||
|------------|--------|------|----|--------|----|
|
||||
|✔️ |✔️ |✔️ |✔️ |✔️ |[benchmark](docs/zh_cn/05-benchmark/benchmark.md)|
|
||||
|✔️ |✔️ |✔️ |✔️ |✔️ |[benchmark](docs/zh_cn/03-benchmark/benchmark.md)|
|
||||
|
||||
### SDK 可高度定制化
|
||||
- Transform 数据预处理
|
||||
|
@ -84,8 +84,8 @@ MMDeploy 是 [OpenMMLab](https://openmmlab.com/) 模型部署工具箱,**为
|
|||
* [贡献者手册](.github/CONTRIBUTING.md)
|
||||
|
||||
## 新人解说
|
||||
* [01 术语解释、加载第一个模型](docs/zh_cn/04-tutorial/01_introduction_to_model_deployment.md)
|
||||
* [02 转成 onnx](docs/zh_cn/04-tutorial/02_challenges.md)
|
||||
* [01 术语解释、加载第一个模型](docs/zh_cn/05-tutorial/01_introduction_to_model_deployment.md)
|
||||
* [02 转成 onnx](docs/zh_cn/05-tutorial/02_challenges.md)
|
||||
|
||||
## 基准与模型库
|
||||
|
||||
|
|
|
@ -420,7 +420,7 @@ GPU: ncnn, TensorRT, PPLNN
|
|||
<td align="center">model</td>
|
||||
<td align="center">metric</td>
|
||||
<td align="center">fp32</td>
|
||||
<td align="center">seresnet</td>
|
||||
<td align="center">fp32</td>
|
||||
<td align="center">fp32</td>
|
||||
<td align="center">fp32</td>
|
||||
<td align="center">fp16</td>
|
||||
|
|
Loading…
Reference in New Issue