You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I keep getting different error relating to Keras and Tensorflow most likely due to version compatibility issues.
Since I was getting this error: TypeError: Could not build a TypeSpec for <KerasTensor: shape=(None, None, 4) I downgraded tf to 2.3.0.
Now I keep getting this error:
Traceback (most recent call last):
File "flower.py", line 43, in <module>
from mrcnn import model as modellib, utils
File "/content/gdrive/My Drive/Mask_RCNN_GrapeDetection/Mask_RCNN/mrcnn/model.py", line 26, in <module>
import keras.engine.topology as KE
File "/usr/local/lib/python3.7/dist-packages/keras/__init__.py", line 25, in <module>
from keras import models
File "/usr/local/lib/python3.7/dist-packages/keras/models.py", line 19, in <module>
from keras import backend
File "/usr/local/lib/python3.7/dist-packages/keras/backend.py", line 37, in <module>
from tensorflow.python.eager.context import get_config
ImportError: cannot import name 'get_config' from 'tensorflow.python.eager.context' (/usr/local/lib/python3.7/dist-packages/tensorflow/python/eager/context.py)
I tried modifying model.py, mainly the way I import keras and its modules; changed import keras to from tensorflow import keras but I keep getting some kind of an error.
If someone could mention a pip freeze > out.txt with versions and dependencies that are needed for proper training, that'd be great!
The text was updated successfully, but these errors were encountered:
I keep getting different error relating to
Keras
andTensorflow
most likely due to version compatibility issues.Since I was getting this error:
TypeError: Could not build a TypeSpec for <KerasTensor: shape=(None, None, 4)
I downgradedtf
to2.3.0
.Now I keep getting this error:
I tried modifying
model.py
, mainly the way I importkeras
and its modules; changedimport keras
tofrom tensorflow import keras
but I keep getting some kind of an error.If someone could mention a
pip freeze > out.txt
with versions and dependencies that are needed for proper training, that'd be great!The text was updated successfully, but these errors were encountered: