Issues with importing keras model using "importKerasNetwork" function
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I have been training my customized UNET model in keras and attempting to load it into MATLAB using an h5 file to run inference.
The issue is when I try to load the model into MATLAB (and yes, I am using model.save so that the h5 file holds both the model and weights) and try to run inference, I get this error:
![Capture.PNG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/232110/Capture.png)
I have tried loading in a single image, the entire volume (images of the retina) and nothing works.
The input dimensions match the dimensions of the input of my keras model.
What coulda this possibly be?
2 Kommentare
Gabija Marsalkaite
am 1 Aug. 2019
Hi Cyrus,
could you provide a link to similar (or your own) network? My initial guess would be that it has no output layer or some layers are not available (e.g. if relevant support package is not installed).
Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!