You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to load a trained model, I get the error:
ValueError: Unknown layer: ResNet2D50
I tried add custom objects while loading:
{'ResNet2D50': keras_resnet.models.ResNet2D50}
but I find it useless @hgaiser@bzamecnik
The text was updated successfully, but these errors were encountered:
RainVerse
changed the title
How should I
How should I load the trained model with keras?
Jul 26, 2019
I found a way to solve it. Create a new model and load the weights from the saved .h5 model. This way is not preferred, but it works. I don't want to re-train my models.
When I try to load a trained model, I get the error:
ValueError: Unknown layer: ResNet2D50
I tried add custom objects while loading:
{'ResNet2D50': keras_resnet.models.ResNet2D50}
but I find it useless
@hgaiser @bzamecnik
The text was updated successfully, but these errors were encountered: