Skip to content
New issue

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

load models #11

Open
dryjins opened this issue May 24, 2022 · 1 comment
Open

load models #11

dryjins opened this issue May 24, 2022 · 1 comment

Comments

@dryjins
Copy link

dryjins commented May 24, 2022

Hi.

It works saving models but I can't load saved models.

I passed attention for custom objects like following.

model = keras.models.load_model('hdf5s/stdn20220520002211.hdf5', custom_objects={'Attention':attention.Attention})

but got error like this

ValueError: You are trying to load a weight file containing 121 layers into a model with 118 layers.

Did I miss something?

@B046090010
Copy link

Hello,

I have the same problem

Do you have any solution?

Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants