Skip to content

fix data_sink_mode freeze, adjust DBNet augmentation pipeline#178

Merged
HaoyangLee merged 1 commit into
mindspore-lab:mainfrom
hadipash:dbnet
Apr 13, 2023
Merged

fix data_sink_mode freeze, adjust DBNet augmentation pipeline#178
HaoyangLee merged 1 commit into
mindspore-lab:mainfrom
hadipash:dbnet

Conversation

@hadipash
Copy link
Copy Markdown
Collaborator

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

Motivation

Passing images to the RandomColorAdjust MindSpore's transform as np.ndarray causes training freeze when the data_sink_mode is set to True. This fix converts images to the PIL format first and converts them back to np.ndarray after color adjustment.

@hadipash hadipash requested a review from HaoyangLee April 13, 2023 04:12
adjust DBNet augmentation pipeline
@HaoyangLee HaoyangLee merged commit bff7f26 into mindspore-lab:main Apr 13, 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.

2 participants