fastai / courses

fast.ai Courses

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

import compatibility issue with newest kereas 2.x

divfor opened this issue · comments

commented

keras-team/keras#5870
two errors: cannot import activity_l2, cannot import layer_from_config

activity_l1 is deleted and was equal to l1
activity_l2 is deleted and was equal to l2
as for layer_from_config:
#from keras.utils.layer_utils import layer_from_config
from keras.layers import deserialize as layer_from_config

commented

There are several compatibility issues in vgg16_avg.py

Most of the course is currently not compatible with Keras 2.0 api.
I guess @jph00 and @racheltho need to decide whether they want to upgrade the first course to keras 2.0 or just reshoot the whole thing in pytorch.

commented

The changes to make it compatible with keras 2.0 were easy and mostly obvious.

@rawmean : Can you post those changes?

I had same issue today and solved it by uninstalling Keras 2.x.x and installing Keras 1.2.2

@taewookim Do the updated modules work with Python 2.7 or only with Python 3 ?

Never tested with Python 2