Skip to content

[Fix] Ensure from_cfg of Runner have the same defaults values as its __init__ #1368

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 3 commits into from
Sep 27, 2023
Merged

Conversation

yinaoxiong
Copy link
Contributor

Thanks for your contribution and we appreciate it a lot. The following instructions would make your pull request more healthy and more easily get feedback. If you do not understand some items, don't worry, just make the pull request and seek help from maintainers.

Motivation

When I followed the 15-minute tutorial in MMENGINE to write the configuration file, I found that I was missing the setting of env_cfg, but directly instantiating the Runner does not require setting env_cfg. Ensuring that the default parameters for a runner instantiated from a configuration file and instantiated directly are the same will be less confusing.

Modification

Add default parameters consistent with the Runner class to the env_cfg of the configuration file.

…hen instantiated from a configuration file and when instantiated directly.
@CLAassistant
Copy link

CLAassistant commented Sep 26, 2023

CLA assistant check
All committers have signed the CLA.

@zhouzaida zhouzaida changed the title [fix] Ensure that the default parameters of the runner are the same when instantiated from a configuration file and when instantiated directly. [Fix] Ensure from_cfg of Runner have the same defaults values as its __init__ Sep 27, 2023
@zhouzaida
Copy link
Collaborator

Hi @yinaoxiong , thanks for your contribution. This PR will be merged after passing the CI.

@zhouzaida zhouzaida merged commit c863e8b into open-mmlab:main Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants