ehsanhaghighat / sciann

Deep learning for Engineers - Physics Informed Deep Learning
htttp://sciann.com
Other
325 stars 116 forks source link

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

Open sandhu-githhub opened 1 year ago

sandhu-githhub commented 1 year ago

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?