-
Notifications
You must be signed in to change notification settings - Fork 746
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Docs] Mark projects in docs (#1766)
* [Docs] Mark projects in docs * fix * fix * fix * fix
- Loading branch information
1 parent
590af4b
commit 465316f
Showing
18 changed files
with
205 additions
and
61 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
var collapsedSections = ['Migration Guides', 'Dataset Zoo', 'Model Zoo', 'Notes', 'API Reference'] | ||
var collapsedSections = ['Migration Guides', 'API Reference'] |
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 was deleted.
Oops, something went wrong.
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,52 @@ | ||
#!/usr/bin/env python | ||
import os.path as osp | ||
import re | ||
|
||
# This script reads /projects/selected.txt and generate projectzoo.md | ||
|
||
files = [] | ||
|
||
project_zoo = """ | ||
# SOTA Models | ||
Here are some selected project implementations that are not yet included in | ||
MMOCR package, but are ready to use. | ||
""" | ||
|
||
files = open('../../projects/selected.txt').readlines() | ||
|
||
for file in files: | ||
file = file.strip() | ||
with open(osp.join('../../', file)) as f: | ||
content = f.read() | ||
|
||
# Extract title | ||
expr = '# (.*?)\n' | ||
title = re.search(expr, content).group(1) | ||
project_zoo += f'## {title}\n\n' | ||
|
||
# Locate the description | ||
expr = '## Description\n(.*?)##' | ||
description = re.search(expr, content, re.DOTALL).group(1) | ||
project_zoo += f'{description}\n' | ||
|
||
# check milestone 1 | ||
expr = r'- \[(.?)\] Milestone 1' | ||
state = re.search(expr, content, re.DOTALL).group(1) | ||
infer_state = '✔' if state == 'x' else '❌' | ||
|
||
# check milestone 2 | ||
expr = r'- \[(.?)\] Milestone 2' | ||
state = re.search(expr, content, re.DOTALL).group(1) | ||
training_state = '✔' if state == 'x' else '❌' | ||
|
||
# add table | ||
readme_link = f'https:/open-mmlab/mmocr/blob/dev-1.x/{file}' | ||
project_zoo += '### Status \n' | ||
project_zoo += '| Inference | Train | README |\n' | ||
project_zoo += '| --------- | -------- | ------ |\n' | ||
project_zoo += f'|️{infer_state}|{training_state}|[link]({readme_link})|\n' | ||
|
||
with open('projectzoo.md', 'w') as f: | ||
f.write(project_zoo) |
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 +1 @@ | ||
var collapsedSections = ['迁移指南', '数据集支持', '模型支持', '记录', 'API文档'] | ||
var collapsedSections = ['MMOCR 0.x 迁移指南', 'API 文档'] |
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 was deleted.
Oops, something went wrong.
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 @@ | ||
#!/usr/bin/env python | ||
import os.path as osp | ||
import re | ||
|
||
# This script reads /projects/selected.txt and generate projectzoo.md | ||
|
||
files = [] | ||
|
||
project_zoo = """ | ||
# 前沿模型 | ||
这里是一些已经复现,但是尚未包含在 MMOCR 包中的前沿模型。 | ||
""" | ||
|
||
files = open('../../projects/selected.txt').readlines() | ||
|
||
for file in files: | ||
file = file.strip() | ||
with open(osp.join('../../', file)) as f: | ||
content = f.read() | ||
|
||
# Extract title | ||
expr = '# (.*?)\n' | ||
title = re.search(expr, content).group(1) | ||
project_zoo += f'## {title}\n\n' | ||
|
||
# Locate the description | ||
expr = '## Description\n(.*?)##' | ||
description = re.search(expr, content, re.DOTALL).group(1) | ||
project_zoo += f'{description}\n' | ||
|
||
# check milestone 1 | ||
expr = r'- \[(.?)\] Milestone 1' | ||
state = re.search(expr, content, re.DOTALL).group(1) | ||
infer_state = '✔' if state == 'x' else '❌' | ||
|
||
# check milestone 2 | ||
expr = r'- \[(.?)\] Milestone 2' | ||
state = re.search(expr, content, re.DOTALL).group(1) | ||
training_state = '✔' if state == 'x' else '❌' | ||
|
||
# add table | ||
readme_link = f'https:/open-mmlab/mmocr/blob/dev-1.x/{file}' | ||
project_zoo += '### 模型状态 \n' | ||
project_zoo += '| 推理 | 训练 | README |\n' | ||
project_zoo += '| --------- | -------- | ------ |\n' | ||
project_zoo += f'|️{infer_state}|{training_state}|[link]({readme_link})|\n' | ||
|
||
with open('projectzoo.md', 'w') as f: | ||
f.write(project_zoo) |
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 @@ | ||
c# 数据准备 (Beta) | ||
# 数据准备 (Beta) | ||
|
||
```{note} | ||
Dataset Preparer 目前仍处在公测阶段,欢迎尝鲜试用!如遇到任何问题,请及时向我们反馈。 | ||
|
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,9 +1,13 @@ | ||
# Projects | ||
|
||
Implementing new models and features into OpenMMLab's algorithm libraries could be troublesome due to the rigorous requirements on code quality, which could hinder the fast iteration of SOTA models and might discourage our members from sharing their latest outcome here. | ||
The OpenMMLab ecosystem can only grow through the contributions of the community. | ||
Everyone is welcome to post their implementation of any great ideas in this folder! If you wish to start your own project, please go through the [example project](example_project/) for the best practice. For common questions about projects, please read our [faq](faq.md). | ||
|
||
And that's why we have this `Projects/` folder now, where some experimental features, frameworks and models are placed, only needed to satisfy the minimum requirement on the code quality, and can be used as standalone libraries. Users are welcome to use them if they [use MMOCR from source](https://mmocr.readthedocs.io/en/dev-1.x/get_started/install.html#best-practices). | ||
## External Projects | ||
|
||
Everyone is welcome to post their implementation of any great ideas in this folder! If you wish to start your own project, please go through the [example project](example_project/) for the best practice. | ||
Here we lists some selected external projects released in the community built upon MMOCR: | ||
|
||
- [TableMASTER-mmocr](https:/JiaquanYe/TableMASTER-mmocr) | ||
- [WordArt](https:/xdxie/WordArt) | ||
|
||
Note: The core maintainers of MMOCR only ensure the results are reproducible and the code quality meets its claim at the time each project was submitted, but they may not be responsible for future maintenance. The original authors take responsibility for maintaining their own projects. |
Oops, something went wrong.