-
Notifications
You must be signed in to change notification settings - Fork 751
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Docs] Update docs after branch switching (#1834)
* [Docs] Update docs after branch switching * fix * update * update docs * update
- Loading branch information
1 parent
97efb04
commit a7e326f
Showing
18 changed files
with
219 additions
and
78 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Branch Migration | ||
|
||
At an earlier stage, MMOCR had three branches: `main`, `1.x`, and `dev-1.x`. Some of these branches have been renamed together with the official MMOCR 1.0.0 release, and here is the changelog. | ||
|
||
- `main` branch housed the code for MMOCR 0.x (e.g., v0.6.3). Now it has been renamed to `0.x`. | ||
- `1.x` contained the code for MMOCR 1.x (e.g., 1.0.0rc6). Now it is an alias of `main`, and will be removed in mid 2023. | ||
- `dev-1.x` was the development branch for MMOCR 1.x. Now it remains unchanged. | ||
|
||
For more information about the branches, check out [branches](../notes/branches.md). | ||
|
||
## Resolving Conflicts When Upgrading the `main` branch | ||
|
||
For users who wish to upgrade from the old `main` branch that has the code for MMOCR 0.x, the non-fast-forwarded-able nature of the upgrade may cause conflicts. To resolve these conflicts, follow the steps below: | ||
|
||
1. Commit all the changes you have on `main` if you have any. Backup your current `main` branch by creating a copy. | ||
|
||
```bash | ||
git checkout main | ||
git add --all | ||
git commit -m 'backup' | ||
git checkout -b main_backup | ||
``` | ||
|
||
2. Fetch the latest changes from the remote repository. | ||
|
||
```bash | ||
git remote add openmmlab git@github.com:open-mmlab/mmocr.git | ||
git fetch openmmlab | ||
``` | ||
|
||
3. Reset the `main` branch to the latest `main` branch on the remote repository by running `git reset --hard openmmlab/main`. | ||
|
||
```bash | ||
git checkout main | ||
git reset --hard openmmlab/main | ||
``` | ||
|
||
By following these steps, you can successfully upgrade your `main` branch. |
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,19 @@ | ||
# What's New in MMOCR 1.x | ||
|
||
Here are some highlights of MMOCR 1.x compared to 0.x. | ||
|
||
1. **New engines**. MMOCR 1.x is based on [MMEngine](https://github.com/open-mmlab/mmengine), which provides a general and powerful runner that allows more flexible customizations and significantly simplifies the entrypoints of high-level interfaces. | ||
|
||
2. **Unified interfaces**. As a part of the OpenMMLab 2.0 projects, MMOCR 1.x unifies and refactors the interfaces and internal logics of train, testing, datasets, models, evaluation, and visualization. All the OpenMMLab 2.0 projects share the same design in those interfaces and logics to allow the emergence of multi-task/modality algorithms. | ||
|
||
3. **Cross project calling**. Benefiting from the unified design, you can use the models implemented in other OpenMMLab projects, such as MMDet. We provide an example of how to use MMDetection's Mask R-CNN through `MMDetWrapper`. Check our documents for more details. More wrappers will be released in the future. | ||
|
||
4. **Stronger visualization**. We provide a series of useful tools which are mostly based on brand-new visualizers. As a result, it is more convenient for the users to explore the models and datasets now. | ||
|
||
5. **More documentation and tutorials**. We add a bunch of documentation and tutorials to help users get started more smoothly. | ||
|
||
6. **One-stop Dataset Preparaion**. Multiple datasets are instantly ready with only one line of command, via our [Dataset Preparer](https://mmocr.readthedocs.io/en/dev-1.x/user_guides/data_prepare/dataset_preparer.html). | ||
|
||
7. **Embracing more `projects/`**: We now introduce `projects/` folder, where some experimental features, frameworks and models can be placed, only needed to satisfy the minimum requirement on the code quality. Everyone is welcome to post their implementation of any great ideas in this folder! Learn more from our [example project](https://github.com/open-mmlab/mmocr/blob/dev-1.x/projects/example_project/). | ||
|
||
8. **More models**. MMOCR 1.0 supports more tasks and more state-of-the-art models! |
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,25 @@ | ||
# Branches | ||
|
||
This documentation aims to provide a comprehensive understanding of the purpose and features of each branch in MMOCR. | ||
|
||
## Branch Overview | ||
|
||
### 1. `main` | ||
|
||
The `main` branch serves as the default branch for the MMOCR project. It contains the latest stable version of MMOCR, currently housing the code for MMOCR 1.x (e.g. v1.0.0). The `main` branch ensures users have access to the most recent and reliable version of the software. | ||
|
||
### 2. `dev-1.x` | ||
|
||
The `dev-1.x` branch is dedicated to the development of the next major version of MMOCR. This branch will routinely undergo reliance tests, and the passing commits will be squashed in a release and published to the `main` branch. By having a separate development branch, the project can continue to evolve without impacting the stability of the `main` branch. **All the PRs should be merged into the `dev-1.x` branch.** | ||
|
||
### 3. `0.x` | ||
|
||
The `0.x` branch serves as an archive for MMOCR 0.x (e.g. v0.6.3). This branch will no longer actively receive updates or improvements, but it remains accessible for historical reference or for users who have not yet upgraded to MMOCR 1.x. | ||
|
||
### 3. `1.x` | ||
|
||
It's an alias of `main` branch, which is intended for a smooth transition from the compatibility period. It will be removed in mid 2023. | ||
|
||
```{note} | ||
The branches mapping has been changed in 2023.04.06. For the legacy branches mapping and the guide for migration, please refer to the [branch migration guide](../migration/branches.md). | ||
``` |
Oops, something went wrong.