keras-vis
keras-vis copied to clipboard
NameError: name 'keras_applications' is not defined
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
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.
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.
I got the same problem. Did you fix it?
Curious about it too, could anyone provide suggestions? @raghakot
The error may be because of the preprocessing(Lambda), I removed this layer and then the problem disappear