Closed denka0711 closed 4 years ago
@denka0711, Please let me know the versions of keras-applications. Maybe, in my guess, the problem will disappear if you install the latest versions. Please pip install -U keras-applications
.
NameError: name 'applications' is not defined
I have installed keras-applicaitions, but somehow my problem is similar.
Im using 1.12.0 version. Is it the latest version?
my keras version is 2.2.4
from keras.applications import *
after I have trained mode, I want to load the mode as the following code:
load YAML and create model
and there is error as following:
~/.local/lib/python3.6/site-packages/keras/engine/base_layer.py in call(self, inputs, kwargs) 455 # Actually call the layer, 456 # collecting output(s), mask(s), and shape(s). --> 457 output = self.call(inputs, kwargs) 458 output_mask = self.compute_mask(inputs, previous_mask) 459
~/.local/lib/python3.6/site-packages/keras/layers/core.py in call(self, inputs, mask) 685 if has_arg(self.function, 'mask'): 686 arguments['mask'] = mask --> 687 return self.function(inputs, **arguments) 688 689 def compute_mask(self, inputs, mask=None):
~/.local/lib/python3.6/site-packages/keras/layers/core.py in wrapper(*args, *kwargs) 21 22 def wrapper(args, **kwargs): ---> 23 if hasattr(keras_applications, 'get_submodules_from_kwargs'): 24 kwargs['backend'] = backend 25 kwargs['layers'] = layers
NameError: name 'keras_applications' is not defined
I don't know how to solve it, could you guys help me