Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

ModuleNotFoundError: No module named 'maskrcnn_benchmark.config' #30

Closed
jiapei100 opened this issue Oct 26, 2018 · 7 comments
Closed

ModuleNotFoundError: No module named 'maskrcnn_benchmark.config' #30

jiapei100 opened this issue Oct 26, 2018 · 7 comments

Comments

@jiapei100
Copy link

❓ Questions and Help

$ python webcam.py --min-image-size 800
Traceback (most recent call last):
File "webcam.py", line 5, in
from maskrcnn_benchmark.config import cfg
ModuleNotFoundError: No module named 'maskrcnn_benchmark.config'

@fmassa
Copy link
Contributor

fmassa commented Oct 26, 2018

Hi, are you using python 2?
Also, did you follow the installation instructions in INSTALL.md?

@fmassa
Copy link
Contributor

fmassa commented Oct 26, 2018

I've added a section in the README with instructions that should help you fix your problem. It is probably related to #22

I'm closing this issue, but let me know if you don't manage to solve your problem.

@sheep1234567
Copy link

image

image

Hi I still have this problem using this setup, do you know what's wrong with it?@fmassa Thanks!

image

@fmassa
Copy link
Contributor

fmassa commented Mar 24, 2019

You didn't install maskrcnn-benchmark properly.

Note that now you need to have a nightly version of PyTorch. 1.0.0 or 1.0.1 won't work

@satyamr1
Copy link

satyamr1 commented Jul 5, 2019

Same error.

$ pwd
      /home/emblab/satyam/maskrcnn/maskrcnn-benchmark/demo
$ python -V
Python 3.6.8 :: Anaconda custom (64-bit)
>>> import torch
>>> print(torch.__version__)
1.2.0.dev20190704
$ nvcc --version
      The pinstarogram 'nvcc' is currently not installed. You can install it by typing:
      sudo apt ll nvidia-cuda-toolkit
$ gcc --version
       gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
       Copyright (C) 2015 Free Software Foundation, Inc.
       This is free software; see the source for copying conditions.  There is NO
       warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

GPU-No (Only CPU)

$ python webcam.py --min-image-size 300 MODEL.DEVICE cpu
       Traceback (most recent call last):
           File "webcam.py", line 5, in <module>
        from maskrcnn_benchmark.config import cfg
        ModuleNotFoundError: No module named 'maskrcnn_benchmark'

Can you help me out @fmassa

@AnnZhn
Copy link

AnnZhn commented Oct 24, 2019

Same error.

$ pwd
      /home/emblab/satyam/maskrcnn/maskrcnn-benchmark/demo
$ python -V
Python 3.6.8 :: Anaconda custom (64-bit)
>>> import torch
>>> print(torch.__version__)
1.2.0.dev20190704
$ nvcc --version
      The pinstarogram 'nvcc' is currently not installed. You can install it by typing:
      sudo apt ll nvidia-cuda-toolkit
$ gcc --version
       gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
       Copyright (C) 2015 Free Software Foundation, Inc.
       This is free software; see the source for copying conditions.  There is NO
       warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

GPU-No (Only CPU)

$ python webcam.py --min-image-size 300 MODEL.DEVICE cpu
       Traceback (most recent call last):
           File "webcam.py", line 5, in <module>
        from maskrcnn_benchmark.config import cfg
        ModuleNotFoundError: No module named 'maskrcnn_benchmark'

Can you help me out @fmassa

i have the same problem with u , have u solved it?

@satyamr1
Copy link

@AnnZhn, yeah the torchvision-nightly version was conflicting with torchvision. I uninstalled torchvision using: pip uninstall torchvision.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants