Skip to content

Fix docs links #477

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

Merged
merged 19 commits into from
Jul 6, 2023
Merged

Fix docs links #477

merged 19 commits into from
Jul 6, 2023

Conversation

ShahJahanIshaq
Copy link
Contributor

Thank you for your contribution to the MindOCR repo.
Before submitting this PR, please make sure:

Motivation

(Write your motivation for proposed changes here.)

Test Plan

(How should this PR be tested? Do you require special setup to run the test or repro the fixed bug?)

Related Issues and PRs

(Is this PR part of a group of changes? Link the other relevant PRs and Issues here. Use https://help.github.com/en/articles/closing-issues-using-keywords for help on GitHub syntax)

Copy link
Collaborator

@SamitHuang SamitHuang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@hadipash hadipash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job!

@@ -29,7 +29,7 @@

### 1.1 通过OpenMPI运行脚本进行训练

在 Ascend 硬件平台上,用户可以使用 `OpenMPI` 的 `mpirun` 命令来运行 `n` 个设备的分布式训练。例如,在 [DBNet Readme](../../../configs/det/dbnet/README.md#34-training) 中,使用以下命令在设备 `0` 和设备 `1` 上训练模型:
在 Ascend 硬件平台上,用户可以使用 `OpenMPI` 的 `mpirun` 命令来运行 `n` 个设备的分布式训练。例如,在 [DBNet Readme](../../mkdocs/dbnet_readme.md) 中,使用以下命令在设备 `0` 和设备 `1` 上训练模型:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to keep the doc available on both github repo and mkdocs online doc. So I prefer to change this link to absolute path (although jump out of mkdocs) instead of mkdocs path (invalid in github repo page).

@@ -42,7 +42,7 @@

## 3. 模型定义参数 (model)

在MindOCR中,模型的网络架构划分为 Transform, Backbone, Neck和Head四个模块。详细请参阅[文档](../../../mindocr/models/README.md),以下是各部分的配置说明与例子。
在MindOCR中,模型的网络架构划分为 Transform, Backbone, Neck和Head四个模块。详细请参阅[文档](../../mkdocs/customize_model),以下是各部分的配置说明与例子。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to keep the doc available on both github repo and mkdocs online doc. So I prefer to change this link to absolute path (although jump out of mkdocs) instead of mkdocs path (invalid in github repo page).

@@ -29,7 +29,7 @@ On Ascend platform, some common restrictions on using the distributed service ar

### 1.1 Run scripts with OpenMPI

On Ascend hardware platform, users can use OpenMPI's `mpirun` to run distributed training with `n` devices. For example, in [DBNet Readme](../../../configs/det/dbnet/README.md#34-training), the following command is used to train the model on devices `0` and `1`:
On Ascend hardware platform, users can use OpenMPI's `mpirun` to run distributed training with `n` devices. For example, in [DBNet Readme](../../mkdocs/dbnet_readme.md), the following command is used to train the model on devices `0` and `1`:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to keep the doc available on both github repo and mkdocs online doc. So I prefer to change this link to absolute path (although jump out of mkdocs) instead of mkdocs path (invalid in github repo page).

@@ -39,7 +39,7 @@ Because the same parameter may need to be reused in different configuration sect

## 3. Model architecture (model)

In MindOCR, the network architecture of the model is divided into four modules: Transform, Backbone, Neck and Head. For details, please refer to [documentation](../../../mindocr/models/README.md), the following are the configuration instructions and examples of each module.
In MindOCR, the network architecture of the model is divided into four modules: Transform, Backbone, Neck and Head. For details, please refer to [documentation](../../mkdocs/customize_model), the following are the configuration instructions and examples of each module.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to keep the doc available on both github repo and mkdocs online doc. So I prefer to change this link to absolute path (although jump out of mkdocs) instead of mkdocs path (invalid in github repo page).

@@ -0,0 +1 @@
{% include-markdown "../../../configs/det/dbnet/README_CN.md#34-training" %}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If use absolute path, then delete this file.

@@ -0,0 +1 @@
{% include-markdown "../../../configs/det/dbnet/README.md#34-training" %}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If use absolute path, then delete this file.

@@ -5,7 +5,7 @@
Note: You need to register an account to download this dataset.

<details open markdown>
<summary>How to Download Born-Digital Images and Annotations</summary>
<summary>How to Download Born-Digital Images and Annotations</summary>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The <details open markdown> <summary> ... </summary> looks redundant, can remove this in all datasets .md. It;s clear enough to leave the download link and some words to explain it.
The same for Chinese datasets .md.

@@ -7,7 +7,7 @@ Total-Text [paper](https://arxiv.org/abs/1710.10400)
Download Total-Text Images from [source](https://github.com/cs-chan/Total-Text-Dataset/tree/master/Dataset) (size = 441Mb).
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Download Total-Text Images from [source](https://github.com/cs-chan/Total-Text-Dataset/tree/master/Dataset) (size = 441Mb).
[Dataset github repo](https://github.com/cs-chan/Total-Text-Dataset/tree/master/Dataset)

@hadipash hadipash requested a review from HaoyangLee July 6, 2023 02:20
@HaoyangLee HaoyangLee merged commit 05018ed into mindspore-lab:main Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants