Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix stat.py #420

Merged
merged 2 commits into from
Jul 7, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions docs_zh-CN/stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ def anchor(name):
statsmsg = f"""
## [{title}]({f})

* Number of checkpoints: {len(ckpts)}
* Number of configs: {len(configs)}
* Number of papers: {len(papers)}
* 模型权重文件数量: {len(ckpts)}
* 配置文件数量: {len(configs)}
* 论文数量: {len(papers)}
{paperlist}

"""
Expand All @@ -80,14 +80,14 @@ def anchor(name):
[f' - {t}: {c}' for t, c in zip(papertypes, papercounts)])

modelzoo = f"""
# 概述
# 总览

* 模型权重文件数量: {len(allckpts)}
* 配置文件数量: {len(allconfigs)}
* 论文数量: {len(allpapers)}
{countstr}

有关支持的数据集,请参阅 [数据集](datasets.md).
有关支持的数据集,可参见 [数据集总览](datasets.md).

{msglist}

Expand Down Expand Up @@ -160,12 +160,12 @@ def anchor(name):
[f' - {t}: {c}' for t, c in zip(papertypes, papercounts)])

modelzoo = f"""
# 概述
# 总览

* 论文数量: {len(alldatapapers)}
{countstr}

有关支持的算法, 请参阅 [模型库](modelzoo.md).
有关支持的算法, 可参见 [模型总览](modelzoo.md).

{datamsglist}
"""
Expand Down