-
Notifications
You must be signed in to change notification settings - Fork 37
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
ImportError: cannot import name 'Layer' from 'keras.layers.core' #24
Comments
I fixed this error by installing previous version of Keras and Tensorflow. Then I downloaded new weights file. Edited keras.json. Now I am getting this error: C:\Users\Furkan\PycharmProjects\mlnet-master\venv\Scripts\python.exe C:/Users/Furkan/PycharmProjects/mlnet-master/main.py Process finished with exit code 1 |
C:\Users\Furkan\PycharmProjects\mlnet-master\venv\Scripts\python.exe C:/Users/Furkan/PycharmProjects/mlnet-master/main.py
2020-08-24 16:56:02.256203: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found
2020-08-24 16:56:02.263070: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
Traceback (most recent call last):
File "C:/Users/Furkan/PycharmProjects/mlnet-master/main.py", line 8, in
from model import ml_net_model, loss
File "C:\Users\Furkan\PycharmProjects\mlnet-master\model.py", line 9, in
from eltwise_product import EltWiseProduct
File "C:\Users\Furkan\PycharmProjects\mlnet-master\eltwise_product.py", line 1, in
from keras.layers.core import Layer, InputSpec
ImportError: cannot import name 'Layer' from 'keras.layers.core' (C:\Users\Furkan\PycharmProjects\mlnet-master\venv\lib\site-packages\keras\layers\core.py)
Process finished with exit code 1
The text was updated successfully, but these errors were encountered: