-
Notifications
You must be signed in to change notification settings - Fork 11.7k
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
No module 'keras.engine' #2993
Comments
Have you found how to solve it? |
I did not solve this issue directly. I think it was regarding an installation error. I made a fork of an MRCNN repo compatible with TF2.0.0+ which works, I have included extra details on all dependency versions I am running (winOS). |
This problem is caused by Keras version, the default requirement.txt does not detect version so you should specify version. |
It doesnt solve keras.engine module problem, unfortunately (for me on google colab) |
What is the problem? can you give me more information? @AvivTahar |
I've faced with the same error as well. You can run these commands which are in the readme.md file. Don't forget to try on colab.
The whole error traceback is here:
|
Did you try to specify the Keras version?!!! |
Hello, ImportError Traceback (most recent call last) File c:\Users\benja\anaconda3\Lib\site-packages\mask_rcnn-2.1-py3.11.egg\mrcnn\model.py:20 File c:\Users\benja\anaconda3\Lib\site-packages\keras_init_.py:4 File c:\Users\benja\anaconda3\Lib\site-packages\keras\activations.py:6 ImportError: cannot import name 'Iterable' from 'collections' (c:\Users\benja\anaconda3\Lib\collections_init_.py) |
Sorry to hear that. |
hello, did you solve this issue? how? |
how to solve this on google colab? |
Hello everyone, I think I have solved this problem. My system is Linux. The version installed of Python is 3.8.19. requirements.txt You could have a try!
|
Hello, I think the dependency are still buggy. So I made a clean install like your project asked: Python 3.4, TensorFlow 1.3, Keras 2.0.8 and other common packages listed in requirements.txt. For my part, I had to change protobuf==3.20 : seems missing.
So I Switched to protobuf 3.19.6 I Had to install pycocotools too. It is asked in the demo (# Mask R-CNN Demo). Installed pycocotools-2.0.7. I post the correct version (who worked for me) on this thread since it's related to requirement.txt / version mismatch. So the correct version for me is : here my requirment.txt:
I think you should do an image docker with the repo with the correct python version and the requirment.txt file with the strict version. Beside that, great project |
trying to run the demo file to get started. Running into this error in the mrcnn/model.py file. Has anyone seen this before? I cant seem to find keras.engine to install.
---> 23 import keras.engine as KE
24 import keras.models as KM
26 from mrcnn import utils
ModuleNotFoundError: No module named 'keras.engine'
The text was updated successfully, but these errors were encountered: