importKerasNetwork returns error assertion failed

조회 수: 1 (최근 30일)
Stefan Lang
Stefan Lang 2021년 1월 8일
편집: Pranav Verma 2021년 1월 11일
Hello there,
I created a model in google colab with tensorflow, which i saved as a .h5 file format. When trying to load this model with importKerasNetwork, I get an error message:
Error using importKerasNetwork (line 86)
Assertion failed.
What does this mean? Where is the mistake? I have no other error message information than that.

답변 (1개)

Pranav Verma
Pranav Verma 2021년 1월 11일
편집: Pranav Verma 2021년 1월 11일
Hi Stefan,
Please recheck the model to see if there is/are any layers that are not supported by importKerasNetwork. importKerasNetwork can import model but with some limitations. Here you can find the layers which are supported. In case any other layer exists in the model, the software returns an error.
Also, importKerasNetwork requires Deep Learning Toolbox™ Importer for TensorFlow-Keras Models support package. If it is not present, the function provides a download link for the same. Hence you can check if it is properly installed on your end. Make sure that you have the latest version of the support package installed. If that doesn't work, try uninstalling and re-installing the support package again. To install the support package, please refer to the following link:
Thanks

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by