ImportError on from maskrcnn_benchmark import _C
See original GitHub issue❓ Questions and Help
ImportError: DLL load failed: The specified module could not be found.
I’ve build the project successfully on Winodws 10 with pytorch 1.0, python 3.6, VS 2017, CUDA 9.2, using Conda environment.
but I get the above error when calling
[nms.py]
from maskrcnn_benchmark import _C
I ran python setup.py build develop
and I have a file REPO_FOLDER/maskrcnn_benchmark/_C.cp36-win_amd64.pyd
and _C.py file in CONDA_ENV_FOLDER\pytorch10\Lib\site-packages\maskrcnn_benchmark-0.1-py3.6-win-amd64.egg\maskrcnn_benchmark
Also, the demo notebook works correctly #1
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
from maskrcnn_benchmark import _C ImportError ... - GitHub
I met an ImporError when I ran WebCam demo. from maskrcnn_benchmark import _C ImportError: /home/user/github/maskrcnn-benchmark/maskrcnn_benchmark/_C.cpython- ...
Read more >cannot import name '_C' from 'maskrcnn_benchmark ...
修改处:nms.pyfrom maskrcnn_benchmark import _C修改为:from ._utils import _C. ... ImportError: cannot import name 'XXX' 问题解决方案.
Read more >MaskTextSpotterV3报错- 宋岳庭- 博客园
... maskrcnn_benchmark import _C ImportError: /home/xuehp/git/MaskTextSpotterV3/tools/maskrcnn_benchmark/_C.cpython-36m-x86_64-linux-gnu.so: ...
Read more >module 'torch.cuda' has no attribute 'amp' - You.com | The search ...
... line 15, in from maskrcnnbenchmark.data import makedataloader File ... ImportError: cannot import name 'amp' from 'torch.cuda' (C:\Users\.
Read more >maskrcnn_benchmark/utils/model_zoo.py · Cyril666/ContourNet at ...
All Rights Reserved. import os import sys try: from torch.utils.model_zoo import _download_url_to_file, urlparse, HASH_REGEX except ImportError: # support ...
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
Solved. The PyCharm environment was correct. After restarting windows, the training script works from PyCharm too. Thanks 😃
You might need to update the settings in PyCharm to take into account your new environment maybe?