Mask_RCNN
Mask_RCNN copied to clipboard
ModuleNotFoundError when running demo
When I ran demo.ipynb, I got "ModuleNotFoundError: No module named 'mrcnn'" in line 15, "from mrcnn import utils" . I tried the solution in https://github.com/matterport/Mask_RCNN/issues/413, which is running "python setup.py install", but that error still exists. I checked my packages and I'm sure that I have already installed mrcnn.
you are missing the folder mrcnn which has the utils.py file. Try to download the repo again.
I checked the folder, it has utils.py in it. I downloaded the repo "Mask_RCNN" again and that error didn't disappear. It really confuses me.
If folder is placed in a location where the script is running, script should find it. At least, you should get something like a method error and not the moduleNotfound error
main folder should include (at least): ----demo.ipynb ----mrcnn>>>utils.py
The file organization is correct. I'm using Anaconda, the envs folder is in disk D but the repo I downloaded is in disk C, could that be the reason? But I tried to put folder Mask_RCNN and cocoapi in envs/MaskRCNN(the environment I created for this project), the result is still the same.
Has anyone found an answer to this. I am having the same problem.
I have the same problem. Has anyone solved this?
I solved this by copying the mrcnn folder from the Mask_RCNN directory and pasting it into the root directory. This works because the code is searching for a module in the root directory, so you need to actually manually change the location of the module to the root directory.
hey 2019 and still i have the same problem..any solution pls!!
Just check in which folder you are in, in Jupyter. You should be in Mask_RCNN and not inside it in sample folder.
@Ankitjaiswal1201 thanks. Indeed the problem originated from the root directory(Folder in which I was referring to)
So i have the same problem. I am trying to run it on spyder. and I am in F drive, Mask_RCNN folder. Any help? I do change the working directory but it goes back into mrcnn
Try I got the solution
Try !pip install mrcnn
!pip install --upgrade h5py==2.10.0
!pip install mrcnn
!git clone https://github.com/DJ-Manjaray/Deeraj-Mask-R-CNN.git
@carolynenewman I am trying to run the repo (https://github.com/RaiyaniNirav/Mask-R-CNN-for-water-detection) on VSCode. I am still facing the issue. I tried moving the mrcnn folder to both the root directory and also to the directory where the VSCode project is getting saved. The issue persists. I even tried updating Tensorflow and Keras, according to a suggestion. Can anyone suggest please that what am I missing here?