Skip to content

Commit

Permalink
Fix chinese doc error (open-mmlab#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
ckkelvinchan authored Jul 7, 2021
1 parent 4053d37 commit fd51b61
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 12 deletions.
3 changes: 2 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Welcome to MMEditing's documentation!
=====================================

You can switch between Chinese and English documents in the bottom-left corner of the layout.

.. toctree::
:maxdepth: 2
:caption: Get Started
Expand Down Expand Up @@ -67,7 +68,7 @@ You can switch between Chinese and English documents in the bottom-left corner o
api.rst

.. toctree::
:caption: 语言切换
:caption: Switch Language

switch_language.md

Expand Down
2 changes: 1 addition & 1 deletion docs_zh-CN/index.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Welcome to MMEditing's documentation!
欢迎来到 MMEditing 的中文文档!
=====================================

您可以在页面左下角切换中英文文档。
Expand Down
2 changes: 2 additions & 0 deletions docs_zh-CN/quick_run.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
## 使用预训练模型进行推理

## 模型训练
18 changes: 9 additions & 9 deletions docs_zh-CN/stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,14 @@ def anchor(name):
[f' - {t}: {c}' for t, c in zip(papertypes, papercounts)])

modelzoo = f"""
# Overview
# 概述
* Number of checkpoints: {len(allckpts)}
* Number of configs: {len(allconfigs)}
* Number of papers: {len(allpapers)}
* 模型权重文件数量: {len(allckpts)}
* 配置文件数量: {len(allconfigs)}
* 论文数量: {len(allpapers)}
{countstr}
For supported datasets, see [datasets overview](datasets.md).
有关支持的数据集,请参阅 [数据集](datasets.md).
{msglist}
Expand Down Expand Up @@ -140,7 +140,7 @@ def anchor(name):
statsmsg = f"""
## [{title}]({f})
* Number of papers: {len(papers)}
* 论文数量: {len(papers)}
{paperlist}
"""
Expand All @@ -160,12 +160,12 @@ def anchor(name):
[f' - {t}: {c}' for t, c in zip(papertypes, papercounts)])

modelzoo = f"""
# Overview
# 概述
* Number of papers: {len(alldatapapers)}
* 论文数量: {len(alldatapapers)}
{countstr}
For supported editing algorithms, see [modelzoo overview](modelzoo.md).
有关支持的算法, 请参阅 [模型库](modelzoo.md).
{datamsglist}
"""
Expand Down
2 changes: 1 addition & 1 deletion docs_zh-CN/tools_scripts.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
## 有用工具
## 实用工具

0 comments on commit fd51b61

Please sign in to comment.