sciann / sciann-applications

A place to share problems solved with SciANN
https://www.sciann.com
Other
238 stars 128 forks source link

AttributeError: module 'keras.backend' has no attribute 'get_graph' #41

Open NischalKMapakshi opened 10 months ago

NischalKMapakshi commented 10 months ago

Hello, I'm testing out sciann. Running my code on google colab. It uses python version Python 3.10.12

Error: AttributeError: module 'keras.backend' has no attribute 'get_graph'

Whats the work around for this?

I've seen some responses asking me to downgrade python version, is that the only fix?

NischalKMapakshi commented 10 months ago

I'm overriding keras version using pip install keras==2.2.0 the new error:

ImportError: cannot import name 'Iterable' from 'collections' (/usr/lib/python3.10/collections/init.py)

veromab commented 10 months ago

Seems like the same issue as https://github.com/sciann/sciann/issues/97

HSluchi commented 2 weeks ago

Same problems, have you fix it? how to correct the code? @NischalKMapakshi