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

Data pipeline refactoring #416

Open
wants to merge 56 commits into
base: main
Choose a base branch
from
Open

Data pipeline refactoring #416

wants to merge 56 commits into from

Conversation

hadipash
Copy link
Collaborator

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

Motivation

Refactored data pipeline to match best MindData practices, including:

  1. Use GeneratorDataset for data loading only.
  2. Use dataset.map operation to apply data transformations and augmentations.
  3. Reduce number of Python transformations by grouping them into a single operation.
  4. Group MindSpore operations as well.
  5. Move to MindSpore operations where it is possible (Decode, Normalize, HWC2CHW).
  6. Integrate MindRecord support.

zhtmike and others added 8 commits July 7, 2023 15:37
* Refactor recogniton data pipeline

* Fix deterioration args

* Fix transform

* remove duplicated

* merge PR #437

* Better name

* better name

* Fix SVTR transform

* fix svtr transform

* best setting for speed

* Fix the random in CVRescale

* better speed in inference

* remove _Compose class from augmentations

* move type checking inside `__init__`

* remove non data related change

---------

Co-authored-by: Rustam Khadipash <[email protected]>
refactor online prediction can run

refactor PredictDataset

finish refactor online inference data pipeline

small fix
@hadipash
Copy link
Collaborator Author

hadipash commented Jul 7, 2023

Rebased onto the main branch to resolve conflicts.

@hadipash hadipash marked this pull request as ready for review July 10, 2023 06:20
zhtmike and others added 20 commits July 24, 2023 17:07
# Conflicts:
#	configs/rec/visionlan/visionlan_resnet45_LA.yaml
#	configs/rec/visionlan/visionlan_resnet45_LF_1.yaml
#	configs/rec/visionlan/visionlan_resnet45_LF_2.yaml
#	deploy/py_infer/src/data_process/preprocess/preprocess_mapping.py
#	deploy/py_infer/src/data_process/preprocess/transforms/general_transforms.py
#	mindocr/data/transforms/svtr_transform.py
#	mindocr/losses/det_loss.py
#	tests/ut/test_infer_datasets.py
# Conflicts:
#	deploy/py_infer/src/data_process/preprocess/builder.py
#	tests/ut/test_infer_datasets.py
# Conflicts:
#	configs/det/dbnet/README.md
#	configs/det/dbnet/README_CN.md
#	configs/det/dbnet/db_r18_mlt2017.yaml
#	configs/det/dbnet/db_r18_td500.yaml
#	configs/det/dbnet/db_r18_totaltext.yaml
#	configs/det/dbnet/db_r50_mlt2017.yaml
#	configs/det/dbnet/db_r50_td500.yaml
#	configs/det/dbnet/db_r50_totaltext.yaml
#	requirements.txt
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.

8 participants