Open sandhu-githhub opened 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?
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?