Cannot import name 'get_dist_info' from mmcv.runner.utils in mmcv 0.2.15 (latest)
See original GitHub issuehi
i get this error when running the train.py
File "/home/me/Desktop/PolarMask/mmdet/datasets/loader/sampler.py", line 6, in <module> from mmcv.runner.utils import get_dist_info ImportError: cannot import name 'get_dist_info'
i can train successfully with mmdetection, but not with Polarmask, any help?
Issue Analytics
- State:
- Created 4 years ago
- Comments:6
Top Results From Across the Web
cannot import name 'get_dist_info' from 'mmcv.runner.utils ...
This error is caused by mmcv v0.2.15, you need to update mmdet to the latest version to use the latest mmcv.
Read more >Source code for mmcv.runner.utils
[docs]def obj_from_dict(info, parent=None, default_args=None): """Initialize an object from dict. The dict must contain the key "type", which indicates the ...
Read more >mmcv Documentation
In the package, we first create a file to implement builders, named converters/builder.py, as below from mmcv.utils import Registry.
Read more >Source code for mmcv.runner.checkpoint
[docs]def load_state_dict(module, state_dict, strict=False, logger=None): """Load state_dict to a module. This method is modified from :meth:`torch.nn.
Read more >Frequently Asked Questions — mmcv 1.3.14 documentation
Compatibility issue between MMCV and MMDetection; “ConvWS is already registered in conv layer” · “No module named 'mmcv. · “invalid device function” or...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
change /PolarMask/mmdet/datasets/loader/sampler.py line 6
from mmcv.runner.utils import get_dist_info
tofrom mmcv.runner import get_dist_info
it there away to update mmdet inside this repository?! please help i can successfully use mmdetection models but not Polarmask