oist / Usiigaci

Usiigaci: stain-free cell tracking in phase contrast microscopy enabled by supervised machine learning
MIT License
192 stars 68 forks source link

Keras issue: ImportEffor: cannot import name 'saving #19

Open dr-sayyadhury opened 3 years ago

dr-sayyadhury commented 3 years ago

Hi, I am having quite a bit of issues trying to my codes. This is the error I keep receiving..


File "", line 1, in model.load_weights(model1, by_name = True)

File "/Users/ShaminiAyyadhury/anaconda3/envs/PhaseC/lib/python3.6/site-packages/mrcnn/model.py", line 2097, in load_weights from keras.engine import saving

ImportError: cannot import name 'saving'


This happens when I run the following line:-

model.load_weights(model1, by_name=True)

I am using the versions as recommended by the authors python 3.6 tf 1.7 Keras 2.1.5

Is there as RCNN update that I need to be aware of?

Thank you.