question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot import name 'get_dist_info' from mmcv.runner.utils in mmcv 0.2.15 (latest)

See original GitHub issue

hi 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:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

14reactions
Hanawhcommented, Mar 5, 2020

it there away to update mmdet inside this repository?! please help i can successfully use mmdetection models but not Polarmask

change /PolarMask/mmdet/datasets/loader/sampler.py line 6 from mmcv.runner.utils import get_dist_infoto from mmcv.runner import get_dist_info

0reactions
bat3acommented, Jan 13, 2020

it there away to update mmdet inside this repository?! please help i can successfully use mmdetection models but not Polarmask

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found