Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maskrcnn import error #3027

Open
xavierPen24 opened this issue Apr 4, 2024 · 2 comments
Open

Maskrcnn import error #3027

xavierPen24 opened this issue Apr 4, 2024 · 2 comments

Comments

@xavierPen24
Copy link

I've been trying to import maskrcnn using the below code

!git clone https://github.com/matterport/Mask_RCNN.git
!pip install -r /content/Mask_RCNN/requirements.txt
!pip show mask-rcnn
%cd /content/Mask_RCNN
! python setup.py install

However I get an error saying,

/content/Mask_RCNN/mrcnn/model.py:2359: SyntaxWarning: "is" with a literal. Did you mean "=="?
if os.name is 'nt':
ModuleNotFoundError Traceback (most recent call last)
in <cell line: 7>()
5 from mrcnn.visualize import display_instances
6 from mrcnn.config import Config
----> 7 from mrcnn.model import MaskRCNN
8 import tensorflow as tf
9 from tensorflow import keras

/content/Mask_RCNN/mrcnn/model.py in
21 import keras.backend as K
22 import keras.layers as KL
---> 23 import keras.engine as KE
24 import keras.models as KM
25

ModuleNotFoundError: No module named 'keras.engine'

How can I fix this?

@coderboyisongithub
Copy link

of all the issue faced in this list....dockize the program .You resolve one other will come. Python libraries are unreliable

@comus3
Copy link

comus3 commented Apr 24, 2024

Hi, I've been looking for an answer to this. I think what we need to do is find the right versions of tensor flow,keras and mrcnn to use together. perhaps go back in the issues tab, see when it wasn't an issue and try to correlate the date before the lates likewise issue with the release date of updates of each packages?

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

No branches or pull requests

3 participants