We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
While loading the compressed model , I am getting the below error.
File "C:\Users\user\Anaconda3\lib\site-packages\keras\utils\generic_utils.py", line 138, in deserialize_keras_object ': ' + class_name)
ValueError: Unknown layer: FactorizedConv2DTucker
from keras.models import load_model
model0 = load_model('E:/Model_Compression/keras_compressor-master/example/mnist/model_compressed.h5')
The text was updated successfully, but these errors were encountered:
Hi @dsnsabari, i am facing the same issue, did you find any solution for this ?
Sorry, something went wrong.
Resolved above error on loading compressed model as: model = load_model(model_path, custom_objects) where custom objects = {'FactorizedConv2DTucker': <class 'keras_compressor.layers.FactorizedConv2DTucker'>, 'FactorizedDense': <class 'keras_compressor.layers.FactorizedDense'>}
but now facing this error : "ValueError: Unknown metric function: {'class_name': 'MeanMetricWrapper', 'config': {'name': 'accuracy', 'dtype': 'float32'}}"
any idea how to reslove this?!
@sunejas Has this problem been solved?
No branches or pull requests
While loading the compressed model , I am getting the below error.
File "C:\Users\user\Anaconda3\lib\site-packages\keras\utils\generic_utils.py", line 138, in deserialize_keras_object
': ' + class_name)
ValueError: Unknown layer: FactorizedConv2DTucker
from keras.models import load_model
model0 = load_model('E:/Model_Compression/keras_compressor-master/example/mnist/model_compressed.h5')
The text was updated successfully, but these errors were encountered: