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

[Enhance] Add cfg-options in argument #212

Merged
merged 4 commits into from
Oct 16, 2020

Conversation

dreamerlin
Copy link
Collaborator

No description provided.

@dreamerlin dreamerlin changed the title [Enhence] Add customized imports and cfg-options [Enhance] Add customized imports and cfg-options Sep 26, 2020
@codecov
Copy link

codecov bot commented Sep 26, 2020

Codecov Report

Merging #212 into master will decrease coverage by 0.05%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #212      +/-   ##
==========================================
- Coverage   85.08%   85.03%   -0.06%     
==========================================
  Files          81       81              
  Lines        5276     5258      -18     
  Branches      849      849              
==========================================
- Hits         4489     4471      -18     
  Misses        648      648              
  Partials      139      139              
Flag Coverage Δ
#unittests 85.03% <ø> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
mmaction/models/localizers/base.py 54.71% <0.00%> (-2.43%) ⬇️
mmaction/models/recognizers/base.py 63.41% <0.00%> (-1.71%) ⬇️
mmaction/datasets/base.py 67.24% <0.00%> (-1.10%) ⬇️
mmaction/models/losses/base.py 90.00% <0.00%> (-0.91%) ⬇️
mmaction/models/heads/base.py 85.71% <0.00%> (-0.78%) ⬇️
mmaction/datasets/pipelines/augmentations.py 94.92% <0.00%> (-0.04%) ⬇️
mmaction/models/losses/ohem_hinge_loss.py 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7158362...577ef50. Read the comment docs.

tools/test.py Outdated
nargs='+',
action=DictAction,
help='override some settings in the used config, the key-value pair '
'in xxx=yyy format will be merged into config file.')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use an example of overwriting two options would be great

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Example is added

tools/test.py Outdated
cfg = Config.fromfile(args.config)

if args.cfg_options is not None:
cfg.merge_from_dict(args.cfg_options)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if --cfg-options defaults to an empty dict, can the above two lines be reduced into one line?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set default={} now

@dreamerlin dreamerlin changed the title [Enhance] Add customized imports and cfg-options [Enhance] Add cfg-options in argument Oct 16, 2020
@innerlee innerlee merged commit 363fe9a into open-mmlab:master Oct 16, 2020
@innerlee innerlee deleted the customized branch October 16, 2020 15:52
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