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

import_modules_from_strings when loading cfg from file #606

Merged
merged 5 commits into from
Oct 15, 2020

Conversation

dreamerlin
Copy link
Contributor

@codecov
Copy link

codecov bot commented Oct 9, 2020

Codecov Report

Merging #606 into master will decrease coverage by 0.04%.
The diff coverage is 34.88%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #606      +/-   ##
==========================================
- Coverage   64.65%   64.61%   -0.05%     
==========================================
  Files         134      134              
  Lines        7645     7672      +27     
  Branches     1350     1358       +8     
==========================================
+ Hits         4943     4957      +14     
- Misses       2450     2459       +9     
- Partials      252      256       +4     
Flag Coverage Δ
#unittests 64.61% <34.88%> (-0.05%) ⬇️

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

Impacted Files Coverage Δ
mmcv/parallel/data_parallel.py 32.35% <ø> (ø)
mmcv/runner/iter_based_runner.py 25.17% <0.00%> (-0.19%) ⬇️
mmcv/runner/base_runner.py 69.01% <16.66%> (-1.66%) ⬇️
mmcv/runner/dist_utils.py 51.04% <21.05%> (-20.15%) ⬇️
mmcv/runner/hooks/checkpoint.py 47.72% <23.52%> (+4.87%) ⬆️
mmcv/cnn/bricks/wrappers.py 65.67% <55.55%> (-1.00%) ⬇️
mmcv/runner/fp16_utils.py 78.00% <60.00%> (+12.71%) ⬆️
mmcv/runner/hooks/sync_buffer.py 88.88% <66.66%> (+24.60%) ⬆️
mmcv/runner/__init__.py 100.00% <100.00%> (ø)
mmcv/runner/hooks/optimizer.py 27.53% <100.00%> (+1.06%) ⬆️
... and 1 more

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 665fee2...9555bfc. Read the comment docs.

@hellock
Copy link
Member

hellock commented Oct 13, 2020

ping @dreamerlin

@innerlee
Copy link
Contributor

This is different from what I have thought.

@dreamerlin
Copy link
Contributor Author

ping @dreamerlin

Unittest has been improved

tests/data/config/r.py Outdated Show resolved Hide resolved
@hellock hellock merged commit a260a96 into open-mmlab:master Oct 15, 2020
wxzs5 pushed a commit to wxzs5/mmcv that referenced this pull request Nov 20, 2020
* import_modules_from_strings when loading cfg from file

* add unittest to tell whether the feature is enabled as expected

* minor

* set an environment variable instead of writing a file

* use 'shutil' instead of 'os.system'
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