Mask_rcnn: Error: ModuleNotFoundError: No module named 'mrcnn'

Created on 8 Apr 2018  路  8Comments  路  Source: matterport/Mask_RCNN

After the recent git pull, I am having this error
"ModuleNotFoundError: No module named 'mrcnn'"

Most helpful comment

After I did python setup.py install the problem's solved. Not sure if that's necessary after git pull, though that only required to do once at the beginning (i.e just after cloning).
I'll close the issue. Thanks

All 8 comments

Where do you get this error? And, are you running the code from the repository directory?

Hi @waleedka , sorry I didn't mention the details. While I tried to train with the coco dataset, i got the above error. And yes, I was running from repo directory.
python samples/coco/coco.py train --dataset=/data/jugs/imageAnnotation/dataset --year=2014 --model=coco
Although, mrcnn module has the __init__.py file.

After I did python setup.py install the problem's solved. Not sure if that's necessary after git pull, though that only required to do once at the beginning (i.e just after cloning).
I'll close the issue. Thanks

Thanks for the details.

Running setup is the right solution. Although, to avoid breaking everyone's existing workflow, we added this line in all files, including coco.py to make sure it works even if you don't call setup.

sys.path.append(ROOT_DIR)  # To find local version of the library

I got the this error
ModuleNotFoundError: No module named '__main__.numbers'; '__main__' is not a package
from these command
from .numbers import normalize_numbers
how to solve these error.

I get this error when I use Python subprocess.check_call(command) and run the prediction. However, when I run it myself on the command line, the error doesn't show up.

@shubhamnagalwade
Your error was resolved by Giving root path by sys.path.append()

@maverick-27
No. just update the TensorFlow and Keras and solve it.

Was this page helpful?
0 / 5 - 0 ratings