-
-
Notifications
You must be signed in to change notification settings - Fork 28
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 'VersionAwareLayers' from 'keras.layers' #11
Comments
I experienced the same thing. Have you found any solution? Is it due to tensorflow or keras version? |
Sorry, I don't exactly remember what worked for me that time but I managed to solve this problem. If you prefer, you can create conda enviroment same as mine using .yaml file of my working environment. This will install required versions of tensorflow and keras libraries for you. .yaml file : https://drive.google.com/file/d/1TGsXzsncMlZsaGxg3dwKK_JG5tQLkG0P/view |
Right, it seems due to the tensorflow and Keras version. I tried to search for this issue on ChatGPT and here is what I got:
|
If you find the working versions of tensorflow and keras I will add it in requirements. I think there were some critical changes in latest tensorflow. |
@ZFTurbo For me, it finally worked with |
@ZFTurbo |
Thank you for the great work.
I am experiencing the following error over and over, even though I created a brand new tensorflow environment and installed all the necessary libraries in it. Could you please have a look on it and guide me how do I solve this problem? Thank you.
ImportError: Unable to import 'VersionAwareLayers' from 'keras.layers' (/home/ubuntu/anaconda3/envs/cm_3d/lib/python3.7/site-packages/keras/layers/init.py)
The text was updated successfully, but these errors were encountered: