-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Doc] improve Chinese documents (#1532)
* refactor doctreee * refactor doctree * update zh-cn * update model zoo * fix invalid link * add caption for faq and changelog
- Loading branch information
1 parent
0cf8177
commit b8397d3
Showing
64 changed files
with
2,578 additions
and
1,471 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Tutorial 7: Deploy models in MMEditing | ||
# Tutorial 8: Deploy models in MMEditing | ||
|
||
[MMDeploy](https://github.com/open-mmlab/mmdeploy) is an open-source deep learning model deployment toolset. | ||
MMDeploy supports deploying models in MMEditing. Please refer to [MMDeploy](https://github.com/open-mmlab/mmdeploy) for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Tutorial 6: Useful tools | ||
# Tutorial 7: Useful tools | ||
|
||
We provide lots of useful tools under `tools/` directory. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import os | ||
|
||
from tqdm import tqdm | ||
|
||
|
||
def update_dataset_zoo(): | ||
|
||
target_dir = 'dataset_zoo' | ||
source_dir = '../../tools/dataset_converters' | ||
os.makedirs(target_dir, exist_ok=True) | ||
|
||
# generate overview | ||
overviewmsg = """ | ||
# 概览 | ||
""" | ||
|
||
# generate index.rst | ||
rstmsg = """ | ||
.. toctree:: | ||
:maxdepth: 1 | ||
:caption: Dataset Zoo | ||
overview.md | ||
""" | ||
|
||
subfolders = os.listdir(source_dir) | ||
for subf in tqdm(subfolders, desc='update dataset zoo'): | ||
|
||
target_subf = subf.replace('-', '_').lower() | ||
target_readme = os.path.join(target_dir, target_subf + '.md') | ||
source_readme = os.path.join(source_dir, subf, 'README_zh-CN.md') | ||
if not os.path.exists(source_readme): | ||
continue | ||
|
||
overviewmsg += f'\n- [{subf}]({target_subf}.md)' | ||
rstmsg += f'\n {target_subf}.md' | ||
|
||
# generate all tasks dataset_zoo | ||
command = f'cat {source_readme} > {target_readme}' | ||
os.popen(command) | ||
|
||
with open(os.path.join(target_dir, 'overview.md'), 'w') as f: | ||
f.write(overviewmsg) | ||
|
||
with open(os.path.join(target_dir, 'index.rst'), 'w') as f: | ||
f.write(rstmsg) | ||
|
||
|
||
if __name__ == '__main__': | ||
update_dataset_zoo() |
Oops, something went wrong.