keras-vis icon indicating copy to clipboard operation
keras-vis copied to clipboard

NameError: name 'keras_applications' is not defined

Open JosephPai opened this issue 6 years ago • 4 comments

Hello, firstly thank you for providing such an awesome package. I got a problem. I've fine-tuned a ResNet50 for a 5-classes problem. This is my model 20181205163126 But when the code goes to this line model = utils.apply_modifications(model) I got NameError: name 'keras_applications' is not defined

Then I skipped this line and go to penultimate_layer = vis_utils.find_layer_idx(model, 'resnet50') Got the same problem.

JosephPai avatar Dec 05 '18 08:12 JosephPai

It is possible that the error is because of the version of keras. The keras_applications is named as keras.applications in earlier version of keras.

lingchen42 avatar Dec 12 '18 16:12 lingchen42

I got the same problem. Did you fix it?

xiranx avatar Apr 15 '19 04:04 xiranx

Curious about it too, could anyone provide suggestions? @raghakot

LearnerInGithub avatar Jun 17 '19 08:06 LearnerInGithub

The error may be because of the preprocessing(Lambda), I removed this layer and then the problem disappear

Littlezjh avatar Aug 13 '19 04:08 Littlezjh