FCN_via_keras icon indicating copy to clipboard operation
FCN_via_keras copied to clipboard

ImportError: cannot import name layer_from_config

Open sodaGH opened this issue 7 years ago • 2 comments

When I run the "train.py", I face the error as followed:

111

Does anyone know how to fix it?

sodaGH avatar Sep 16 '17 08:09 sodaGH

The import should be changed to the following:

# from keras.utils.layer_utils import layer_from_config
from keras.layers import deserialize as layer_from_config

jermenkoo avatar Nov 01 '17 10:11 jermenkoo

Downgrading to Keras version 1.2.2 cleared that error for me.

cemsaz avatar Apr 25 '18 15:04 cemsaz