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

Sciann: Model Load Layer Mismatch Issue: Need Your Help #78

Open
sandhu-githhub opened this issue Feb 12, 2023 · 0 comments
Open

Sciann: Model Load Layer Mismatch Issue: Need Your Help #78

sandhu-githhub opened this issue Feb 12, 2023 · 0 comments

Comments

@sandhu-githhub
Copy link

Dear Ehsan,

I hope that your are doing great.

I need your help and I will highly appreciate it.

I am training a scimodel ("model1"), saving its weights in .hdf5 format. e.g., "model1.hdf5"

Then staying in the same notebook, I create another cell and another scimodel "model2" with identical variables, inputs and outputs as in "model1".

This time i just modified the "targets" variable....a little.....

Now I am training "model2" with loading weights from "model1.hdf5"

it consistently tells me that :

ValueError: Layer count mismatch when loading weights from file. Model expected 12 layers, found 10 saved layers.

I have even re-ran the notebooks in case their is some glitch.... but to no resolve.

Please guide me, how can i resolve this issue?

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

1 participant