Skip to content

Move save config before training start log #478

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 2 commits into from
Jul 5, 2023

Conversation

zhtmike
Copy link
Collaborator

@zhtmike zhtmike commented Jul 4, 2023

Sometimes the saving config takes very long time (especially for large dataset and thus the optimizer.lr is very long) and may even stuck. The log saying the training is start but actually it is not. So suggested to move the config saving before logging of "training start"

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)

Co-authored-by: Rustam Khadipash <16683750+hadipash@users.noreply.github.com>
@zhtmike zhtmike merged commit e6aebcf into mindspore-lab:main Jul 5, 2023
tonytonglt pushed a commit to tonytonglt/mindocr-fork that referenced this pull request Jul 6, 2023
* Move save config before training start log

* Update tools/train.py

Co-authored-by: Rustam Khadipash <16683750+hadipash@users.noreply.github.com>

---------

Co-authored-by: Rustam Khadipash <16683750+hadipash@users.noreply.github.com>
@zhtmike zhtmike deleted the move_save_cfg branch July 19, 2023 02:31
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.

3 participants